From d5f05d5790bdc159f1d235533f9fbb6147635bfb Mon Sep 17 00:00:00 2001 From: Ali Borhani Date: Mon, 14 Mar 2016 01:37:15 +0330 Subject: [PATCH 1/4] Create README.md --- README.md | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..7c7b3cd --- /dev/null +++ b/README.md @@ -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. From 235e2ee221e08f55835a976144b6101b9a8bb05e Mon Sep 17 00:00:00 2001 From: Ali Borhani Date: Mon, 14 Mar 2016 01:41:58 +0330 Subject: [PATCH 2/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7c7b3cd..9bebdbd 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ A simple utility to check whether the given url/domain is blocked in Iran. ## Installation -Run the following command to install this [package](): +Run the following command to install this [package](https://packagist.org/packages/filternet/filternet): ~~~bash composer global require filternet/filternet From 47d75bd9f4c60080e1f9793fc887789e1001ff02 Mon Sep 17 00:00:00 2001 From: Ali Borhani Date: Mon, 14 Mar 2016 01:50:11 +0330 Subject: [PATCH 3/4] Fix symfony version --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 1ee17a1..1e79fb6 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "require": { "php": ">=5.5.9", "react/dns": "~0.4.0", - "symfony/console": "^3.0" + "symfony/console": "~2.8|~3.0" }, "autoload": { "psr-4": { From 814adb05220b8d21535e1f01e6860a467e1e6270 Mon Sep 17 00:00:00 2001 From: Ali Borhani Date: Mon, 14 Mar 2016 02:04:13 +0330 Subject: [PATCH 4/4] Update minimum php version to 5.6 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 1e79fb6..830b364 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ "dns-hijacking" ], "require": { - "php": ">=5.5.9", + "php": ">=5.6", "react/dns": "~0.4.0", "symfony/console": "~2.8|~3.0" },