Coder Social home page Coder Social logo

Filternet

A simple utility to check whether the given url/domain is blocked in Iran.

Installation

Install this package via Composer:

composer global require filternet/filternet

or via cgr:

cgr filternet/filternet

Usage

DNS

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

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)

filternet check:sni twitter.com
 2/2 [============================] 100% Done!
+-------------+---------+-------------------------------+---------------------+
| SNI Name    | Status  | Error                         | Date                |
+-------------+---------+-------------------------------+---------------------+
| twitter.com | Blocked | SSL: Connection reset by peer | 2016-04-08 00:01:13 |
| TWITTER.COM | Open    | ~UNKNOWN~                     | 2016-04-08 00:01:13 |
+-------------+---------+-------------------------------+---------------------+

License

This project is released under the MIT License.

Filternet's Projects

filternet-php icon filternet-php

A simple utility to check whether the given url/domain is blocked in Iran.

reports icon reports

Reports of Internet Censorship In Iran

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.