ViewDNS.info - Your one source for DNS related tools!
ViewDNS.info > API > Documentation >

Iran Firewall Test API



Documentation Home

TOOLS
Abuse Contact Lookup
ASN Lookup
Chinese Firewall Test
DNS Propagation Checker
DNS Record Lookup
DNS Report
DNSSEC Test
Domain/IP Whois
Free Email Lookup
Get HTTP Headers
Google Pagerank Checker
IP History
IP Location Finder
Iran Firewall Test
Is My Site Down
MAC Address Lookup
Ping
Port Scanner
Reverse DNS Lookup
Reverse IP Lookup
Reverse NS Lookup
Reverse Whois Lookup
Spam Database Lookup
Traceroute
URL/String Decode


Iran Firewall Test

Test if any website is accessible using the Internet in Iran in real-time.

URL

http://pro.viewdns.info/iranfirewall/

Parameters

siteurl - the URL to test
output - the output format required ('xml' or 'json')
apikey - your api key

Sample Query - Pass Case

siteurl: http://www.test.com

GET http://pro.viewdns.info/iranfirewall/?siteurl=http://www.test.com&apikey=yourapikey&output=output_type

XML Response (output=xml)

<?xml version='1.0' encoding='ISO-8859-1'?>
<viewdns>
  <query>
    <tool>iranfirewall_PRO</tool>
    <siteurl>http://www.test.com</siteurl>
  </query>
  <response>
    <result>ok</result>
  </response>
</viewdns>

JSON Response (output=json)

{
    "query": {
        "tool": "iranfirewall_PRO",
        "siteurl": "http:\/\/www.test.com"
    },
    "response": {
        "result": "ok"
    }
}

Sample Query - Fail Case

domain: http://www.twitter.com

GET http://pro.viewdns.info/iranfirewall/?siteurl=http://www.twitter.com&apikey=yourapikey&output=output_type

XML Response (output=xml)

<?xml version='1.0' encoding='ISO-8859-1'?>
<viewdns>
  <query>
    <tool>iranfirewall_PRO</tool>
    <siteurl>http://www.twitter.com</siteurl>
  </query>
  <response>
    <result>blocked</result>
  </response>
</viewdns>

JSON Response (output=json)

{
    "query": {
        "tool": "iranfirewall_PRO",
        "siteurl": "http:\/\/www.twitter.com"
    },
    "response": {
        "result": "blocked"
    }
}







All content © 2016 ViewDNS.info
Feedback / Suggestions / Contact Us   Become an Affiliate