Forum Moderators: phranque

Message Too Old, No Replies

I hate ads -- ad domains go to localhost

How do I re-direct all "not found" to 1x1 pixel gif?

         

sun818

1:41 am on Sep 24, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I changed my hosts entry file to re-direct all banner ad domains to my localhost web server. Since I am running Apache, I assume there is a way to redirect all the "not found" error messages to a 1x1 pixel image to create a more pleasant browsing experience. Is this something I can do in .htaccess? I'm a newbie when it comes to Apache and .htaccess! Any help is appreciated.

Thanks.

toadhall

2:20 am on Sep 24, 2002 (gmt 0)

10+ Year Member



Add ErrorDocument 404 /pixel.gif to your httpd.conf (around line 890) or, if you don't need to run Apache while surfing, try eDexter. It's a small server dedicated to your purpose only.

sun818

3:01 am on Sep 24, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Works great! Cheers.