Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like disallow all redirects to specific sites (e.g.

How can I do this?

A browser-independent solution is preferable, of course, but if that's not available, I am looking for a solution for Firefox.

If it this is not possible at all in Firefox, then the next best would be a solution for the first of the following browsers for which it is at all possible: Chrome, Safari, IE, Opera.


PS: I know that in Firefox one can limit the number of all redirects, and one can set this number to 0 to disable redirects entirely, but this does not achieve what II want; for one, it makes normal browsing impossible, and is overkill anyway.

share|improve this question
I think NoRedirect extension for FF will help you for this. – avirk May 31 '12 at 15:39
What are you trying to solve specifically? Are you trying to write an application, or are you looking for something for yourself for when you're browsing around the internet? – MaddHacker May 31 '12 at 16:12
@MaddHacker, I want to selectively prevent some redirects while I browser. – kjo May 31 '12 at 16:26
@avirk: Thanks! (If you post your comment as an answer, I'll be happy to accept it.) – kjo May 31 '12 at 16:39
up vote 2 down vote accepted

You can use NoRedirect extension for FF it will prevent the site to redirect on your PC. If you want to completely block a site on your PC then you don't have need to use plugin for different browsers just go to the following path..


You can use Notepad or Notepad++ as any editor which is your favorite and run it as administrator. Now through the File menu select the open option and redirect to the above path and open the hosts file.

Now you have to just type

And this will block that site on your PC for any browser. To know how block site through localhost see my this answer.

share|improve this answer
@kjo check my edited answer. – avirk Jun 7 '12 at 7:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.