-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |