Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alibo committed Mar 13, 2016
1 parent 278fad7 commit d5f05d5
Showing 1 changed file with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Filternet
A simple utility to check whether the given url/domain is blocked in Iran.

## Installation

Run the following command to install this [package]():

~~~bash
composer global require filternet/filternet
~~~

## Usage

#### DNS

~~~bash
filternet check:dns youtube.com -s 8.8.8.8
~~~

Result:

~~~
2/2 [============================] 100% Done!
+-------------+-----------------+---------+---------------------+
| Domain | IP | Status | Date |
+-------------+-----------------+---------+---------------------+
| youtube.com | 10.10.34.36 | Blocked | 2016-03-14 01:27:58 |
| YOUTUBE.COM | 173.194.116.195 | Open | 2016-03-14 01:27:58 |
+-------------+-----------------+---------+---------------------+
~~~

#### HTTP

~~~bash
filternet check:http http://dropbox.com
~~~

Result:

~~~
100/100 [============================] 100% Done!
+--------------------+------------------------+-------+---------+---------------------+
| Url | HTTP Response Status | Title | Status | Date |
+--------------------+------------------------+-------+---------+---------------------+
| http://dropbox.com | HTTP/1.0 403 Forbidden | M4-8 | Blocked | 2016-03-14 01:30:18 |
+--------------------+------------------------+-------+---------+---------------------+
~~~

#### TLS SNI (Server Name Indication)

~~~bash
filternet check:sni twitter.com
~~~

~~~
2/2 [============================] 100% Done!
+-------------+---------+---------------------+
| SNI Name | Status | Date |
+-------------+---------+---------------------+
| twitter.com | Blocked | 2016-03-14 01:34:40 |
| TWITTER.COM | Open | 2016-03-14 01:34:40 |
+-------------+---------+---------------------+
~~~

## License

This project is released under the [MIT](https://github.com/alibo/filternet/blob/master/LICENSE) License.

0 comments on commit d5f05d5

Please sign in to comment.