how to Prevent Governmental blocking ruls ?!

Everything about using Adblock Plus on Mozilla Firefox, Thunderbird and SeaMonkey
peaceful1
Posts: 114
Joined: Thu Nov 18, 2010 6:25 pm

how to Prevent Governmental blocking ruls ?!

Post by peaceful1 »

something near the whole net is blocked in my country. when a person tries to reach a certain site the page will be redirected to this URL:

Code: Select all

http://10.10.34.34/?type=Invalid%20Site&policy=MainPolicy
& after 30 seconds it will be redirected to another direction:

Code: Select all

http://peyvandha.ir/
I tried to prevent this matter but whatever I do it won't prevent the redirection behavior.
these are the blocking rules I use:

Code: Select all

10.10.34.34##HTML
peyvandha.ir##HTML
||10.10.34.34^
||peyvandha.ir^
it looks like there is a script that only functions when you're directly blocked by peyvandha.ir
http://userscripts.org/scripts/show/97071
& one thing I notice the only browser that automatically reacts is opera that blocks the redirection so the Government has blocked the download link.
my main problem is with Google chrome
can anyone help me with this situation
Peaceful1
Last edited by peaceful1 on Fri Sep 02, 2011 7:54 am, edited 1 time in total.
CoJaBo
Posts: 5
Joined: Mon May 16, 2011 5:31 pm

Re: how to Prevent Governmental blocking ruls ?!

Post by CoJaBo »

What would be the goal here, exactly? Assuming you blocked the redirect, what would you expect to happen?
If you want to actually access the site, you'd need something like Tor.
Michael
Posts: 1361
Joined: Sat Dec 19, 2009 12:29 pm

Re: how to Prevent Governmental blocking ruls ?!

Post by Michael »

Tor is reportedly (and worringly) blocked in Iran. Peaceful1, have you tried using proxies, as suggested in the blog post?
peaceful1
Posts: 114
Joined: Thu Nov 18, 2010 6:25 pm

Re: how to Prevent Governmental blocking ruls ?!

Post by peaceful1 »

thanks for the replay!!
my aim is not to prevent the blocking rules & view the original site with adblocker (thats impossible)
previewing blocked sites is another matter that is not related to this forum & topic
the point is when you see a blocked site the address changes from

Code: Select all

www.facebook.com
bbc.co.uk
cnn.com
balatarin.com
twitter.com
to

Code: Select all

http://peyvandha.ir/
or

Code: Select all

10.10.34.34
so if you wont remember what blocked page you were facing you will lose the blocked URL becomes it was redirected but if you use these rules I said mostly it will show a blank page so you will understand the page was blocked but there won't be any redirection behaver after a while you will be able to use a proxy or vpn & with a simple reload you could see the blocked page.
but the rules I use don't always work that's my problem
Last edited by peaceful1 on Tue Aug 02, 2011 7:59 am, edited 1 time in total.
Gingerbread Man

Re: how to Prevent Governmental blocking ruls ?!

Post by Gingerbread Man »

Without being able to test, I'm not sure I understand the situation, but perhaps one of these two solutions would be of use to you.
  1. NoRedirect
    NoRedirect lets the user take control of HTTP redirects. It can be used to interdict an ISP's DNS search redirection hijacks, preview/screen "shortened" URLs (e.g., TinyURL), stop the annoying redirection of "smart" error pages, etc.
  2. BlockSite
    BlockSite is an extension, which automagically blocks websites of your choice. Additionally, this extension will disable all hyperlinks to these websites, by just displaying the link text without the clicking functionality.
peaceful1
Posts: 114
Joined: Thu Nov 18, 2010 6:25 pm

Re: how to Prevent Governmental blocking ruls ?!

Post by peaceful1 »

thanks for all the informative information, so it looks like I may not be able to do the trick just with Adblocker Plus
lewisje
Posts: 2743
Joined: Mon Jun 14, 2010 12:07 pm

Re: how to Prevent Governmental blocking ruls ?!

Post by lewisje »

Have you considered changing your DNS settings to use these servers?

Code: Select all

156.154.70.22
156.154.71.22
These are for Comodo Secure DNS: http://www.comodo.com/secure-dns/

Also, I have gone ahead and copied in that UserScript; just copy the text, save as "peyvanda.user.js" and use it with Chrome, Firefox with GreaseMonkey or Scriptish, or Opera, or any other browser that allows UserScripts...

Code: Select all

// ==UserScript==
// @name              Remove peyvandha.ir
// @namespace    http://userscripts.org/users/293637
// @description    Replaces the Islamic Republic of Iran censored content notice page with this message: "Content has been censored by the Islamic Republic of Iran!" and allows you to load the censored content from Google web cache.
// @include           *
// ==/UserScript==

var filters = ["http://10.10.34.34/"];
var iframe = document.getElementsByTagName("iframe")[0];
var loc = document.location;

for (var j = 0; j < filters.length; ++j) {
	if (iframe.src.indexOf(filters[j]) != -1) {
		var cache = "https://webcache.googleusercontent.com/search?q=cache:" + loc + "&hl=en";
		var text = document.createElement("p");
		text.innerHTML = "Content has been censored by the Islamic Republic of Iran! <a href = '" + cache + "'>Click here</a> to try loading it from Google web cache.";
		iframe.parentNode.replaceChild(text, iframe);
	}
}
For Safari, the author's extension is here: http://www.multiupload.com/KOX1F1FIV6
There's a buzzin' in my brain I really can't explain; I think about it before they make me go to bed.
peaceful1
Posts: 114
Joined: Thu Nov 18, 2010 6:25 pm

Re: how to Prevent Governmental blocking ruls ?!

Post by peaceful1 »

thanks for the help,
our Government hacked us few days ago.
Image
^^^^^
how i saw gmail three days ago
this was the second time so any security tip is highly appreciated & also the DNS worked fine thanks allot!!
lewisje
Posts: 2743
Joined: Mon Jun 14, 2010 12:07 pm

Re: how to Prevent Governmental blocking ruls ?!

Post by lewisje »

peaceful1 wrote:thanks for the help,
our Government hacked us few days ago.
Image
^^^^^
how i saw gmail three days ago
this was the second time so any security tip is highly appreciated & also the DNS worked fine thanks allot!!
Tell your friends, and look here for a shit-ton more DNS servers to consider: http://www.chaz6.com/files/resolv.conf

As for the false SSL cert for GMail, it may have something to do with this story: http://nakedsecurity.sophos.com/2011/08 ... n-5-weeks/

Google and Mozilla have released new versions of their browsers to revoke all of the hacked DigiNotar certificates involved: http://news.cnet.com/8301-27080_3-20098 ... et-attack/
There's a buzzin' in my brain I really can't explain; I think about it before they make me go to bed.
peaceful1
Posts: 114
Joined: Thu Nov 18, 2010 6:25 pm

is this a tracker ?!

Post by peaceful1 »

this is Irans Governmental blocking rule any site that is blocked redirects to this link but sometime some sites contain this link:
http://10.10.34.34/?type=Invalid%20Site ... MainPolicy
like this:
http://www.nic.cz.cc/
so what does it do except for blocking filtered sites.
Last edited by peaceful1 on Fri Sep 02, 2011 4:22 pm, edited 1 time in total.
lewisje
Posts: 2743
Joined: Mon Jun 14, 2010 12:07 pm

Re: how to Prevent Governmental blocking ruls ?!

Post by lewisje »

I think if a site actually contains that link, then a proxy server somewhere in the Iranian network is dynamically changing URLs to the blocked-site address.

Also, cz.cc is a domain that sells subdomains that are mostly used by spammers and malware authors, similarly to co.cc; those are not legitimate secondary-level domains regulated by a TLD holder the way that co.uk is: https://secure.wikimedia.org/wikipedia/ ... /.cc#co.cc
There's a buzzin' in my brain I really can't explain; I think about it before they make me go to bed.
peaceful1
Posts: 114
Joined: Thu Nov 18, 2010 6:25 pm

Re: how to Prevent Governmental blocking ruls ?!

Post by peaceful1 »

it's been 3-4 months that Fanboy site has been blocked by the government so I guess Iranians can only use Easy list (hope they won't block the main site)
lewisje
Posts: 2743
Joined: Mon Jun 14, 2010 12:07 pm

Re: how to Prevent Governmental blocking ruls ?!

Post by lewisje »

peaceful1 wrote:it's been 3-4 months that Fanboy site has been blocked by the government so I guess Iranians can only use Easy list (hope they won't block the main site)
Fanboy's lists are also hosted on Bitbucket and Codeplex, which I hope have not been blocked by the government, and I have hosted the Mirrors page on PasteHTML so that you can access those sweet sweet subscription links: http://pastehtml.com/view/b6nrzrie5.html
There's a buzzin' in my brain I really can't explain; I think about it before they make me go to bed.
peaceful1
Posts: 114
Joined: Thu Nov 18, 2010 6:25 pm

Re: how to Prevent Governmental blocking ruls ?!

Post by peaceful1 »

lewisje wrote:
peaceful1 wrote:it's been 3-4 months that Fanboy site has been blocked by the government so I guess Iranians can only use Easy list (hope they won't block the main site)
Fanboy's lists are also hosted on Bitbucket and Codeplex, which I hope have not been blocked by the government, and I have hosted the Mirrors page on PasteHTML so that you can access those sweet sweet subscription links: http://pastehtml.com/view/b6nrzrie5.html
thanks for the mirror link, I think I'm being monitored or maybe I'm paranoid the next day i wrote this post they had unblocked the site.
Guest

Re: how to Prevent Governmental blocking ruls ?!

Post by Guest »

peaceful1 wrote:thanks for the replay!!
my aim is not to prevent the blocking rules & view the original site with adblocker (thats impossible)
previewing blocked sites is another matter that is not related to this forum & topic
the point is when you see a blocked site the address changes from

Code: Select all

www.facebook.com
bbc.co.uk
cnn.com
balatarin.com
twitter.com
to

Code: Select all

http://peyvandha.ir/
or

Code: Select all

10.10.34.34
so if you wont remember what blocked page you were facing you will lose the blocked URL becomes it was redirected but if you use these rules I said mostly it will show a blank page so you will understand the page was blocked but there won't be any redirection behaver after a while you will be able to use a proxy or vpn & with a simple reload you could see the blocked page.
but the rules I use don't always work that's my problem
Post Reply