Fog Creek Software
Discussion Board

Stopping pop up ads

I am trying to write a software to stop pop up ads.(i know there are ones available on the internet).

I know that I have to block all requests, other than the users.

can you point me to any reading material regd this. Google was throwing out links to such software not how it works.


Prakash S
Tuesday, September 24, 2002

well, you could write a proxy which is between a browser and the internet, intercepting all requests going to ad-servers. The user would have to specify this proxy in his browser settings. Furthermore your proxy must be able to get pages through any other proxy the user might want to use, kind of like a chain. Just some thoughts...

Tuesday, September 24, 2002

Be carefull in one point - once you start blocking pop-ups you may block some other dynamic contebt as well. And the Web-site stops working.
I'm using the "Agnitum Outpost Firewall" and it cuts almost all of dynamic content generated but I can't use it all the time because occasionally some sites don't work ..

Evgeny Goldin
Tuesday, September 24, 2002

Opera has an option to refuse pop-up ads.  Works great.

Just click on File | Quick Preferences | Refuse pop-up windows

You can turn it off if it is a pop-up that you actually want to see.

Tuesday, September 24, 2002

I wrote one of those popup busting programs. Here are my pointers how to start it:
1. Get a wife who is bitching about popup windows :-)
2. Have lots of disposable time
3. Avoid asking how to do it.
4. Get your hand dirty
5. Set your goals high

Full name :-)
Tuesday, September 24, 2002

Mozilla (but not Netscape) blocks pop-ups. Why in the world would you write this yourself? As an exercise?

Tuesday, September 24, 2002

I use Opera at work.  You can quickly turn on and off pop-ups and Flash with the F12 key.

At home I use Proxomitron
That is the best.  It's a local proxy server that filters out all kinds of stuff.  Again, it's easy to turn on and off.

Sorry I don't really know how they do it, but they serve as fine examples.  One key is to make it quick and easy to turn on and off.

William Frantz
Tuesday, September 24, 2002

If you are willing to make it work for IE only, look into Browser Helper Objects.

Joel Spolsky
Tuesday, September 24, 2002

Joel is right... and do not forget about the IE DOM

Full name :-)
Wednesday, September 25, 2002

A friend of mine is now using Privoxy (runs on Windows) to get rid of ads and other impediments, and is very happy with it :
<a href=""></a>

Frederic Faure
Wednesday, September 25, 2002

I just use the etc/hosts file at:

You can "block" servers by redirecting it to your localhost, thus blocking add servers. For example:      localhost

Matthew Lock
Wednesday, September 25, 2002

About 95% of adverts and pop up windows on the internet are served by a small number of servers, so you should have no trouble blocking them all after a bit of surfing.

Matthew Lock
Wednesday, September 25, 2002


The original question wasn't "how to stop popups", but how to write a popup killing software.

Full name :-)
Thursday, September 26, 2002

I keep getting pop up ads from these pop ups come when I am not surfing.  Adsubtract does not stop them.  Does anyone know how I can stop them?  Is there something on my PC I can delete to stop them?
Many thanks for any suggestions,

Fred Meek
Wednesday, January 28, 2004

This is how I did it. It worked for me.
Do a search in your registry for "parse.js.php", and delete all the keys and data associated with it!

Wesley van Rensburg
Thursday, May 6, 2004

*  Recent Topics

*  Fog Creek Home