Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-11-2004, 09:13 PM
|
#1
|
Member
Registered: Aug 2003
Location: Melbourne Australia
Distribution: Debian Stretch
Posts: 374
Rep:
|
HOSTS file and error messages
i use a hosts file to block advertisments on the net. this works very well however in konqueror instead of a banner ad i recieve the following
An error occurred while loading http://pagead2.googlesyndication.com/pagead/ads?
is there a way to change this message, or in my hosts file to have it redirect to a white jpg or something?
thanks
|
|
|
12-11-2004, 09:29 PM
|
#2
|
Senior Member
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197
Rep:
|
You could do something like run a local httpd server and RewriteRule ^(.*)$ to a 1x1 transparent gif or something.
As an alternative, check out the junkbuster proxy.
|
|
|
12-11-2004, 11:01 PM
|
#3
|
Member
Registered: Aug 2003
Location: Melbourne Australia
Distribution: Debian Stretch
Posts: 374
Original Poster
Rep:
|
i have a local http server, could you give me an example of how to do this RewriteRule ^(.*)$
|
|
|
12-11-2004, 11:24 PM
|
#4
|
Senior Member
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197
Rep:
|
|
|
|
12-14-2004, 03:57 AM
|
#5
|
Member
Registered: Aug 2003
Location: Melbourne Australia
Distribution: Debian Stretch
Posts: 374
Original Poster
Rep:
|
yeah right, thanks anyways
|
|
|
12-14-2004, 08:11 AM
|
#6
|
Senior Member
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197
Rep:
|
Ok fine ... Here's an example that won't work, but should show you enough to get you started -- You could also do this with AliasMatch or RedirectMatch:
RewriteRule ^(.*)$ /image
Hint: You'll need a vhost for this
|
|
|
12-14-2004, 08:59 AM
|
#7
|
Member
Registered: Aug 2003
Location: Melbourne Australia
Distribution: Debian Stretch
Posts: 374
Original Poster
Rep:
|
i did a dodgy but it works none the less.
changed my 404 error page on my webserver to a transperant gif.
pretty cheap huh, lol
|
|
|
All times are GMT -5. The time now is 08:23 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|