Skip to content

Commit

Permalink
Merge branch 'master' of github.com:alibo/filternet
Browse files Browse the repository at this point in the history
  • Loading branch information
alibo committed Mar 14, 2016
2 parents 767a7a9 + 814adb0 commit ce86f48
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 2 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](https://packagist.org/packages/filternet/filternet):

~~~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.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"dns-hijacking"
],
"require": {
"php": ">=5.5.9",
"php": ">=5.6",
"react/dns": "~0.4.0",
"symfony/console": "^3.0"
"symfony/console": "~2.8|~3.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit ce86f48

Please sign in to comment.