Block every shred of traffic from a referrer
February 4, 2008 7:45 PM
Subscribe
How do I block absolutely all traffic from a specified referrer?
I've got a handful of referrers I need to block completely - even pings. I want anything from the referrer ignored, and not to register as a single byte of traffic, if possible.
I've put PHP and .htaccess blocks in place, but they still seem to register a sliver of traffic on each hit.
Any way to block these completely? I have a dedicated server running Fedora, so I can install whatever I need wherever it needs to be.
posted by JWright to computers & internet (18 comments total)
1 user marked this as a favorite
That is, your browser with your IP address will send an HTTP request to google (using TCP). One of the headers will read (something like)
referrer: http://ask.metafilter.com/82811/Block-every-shred-of-traffic-from-a-referrerHowever, if you took the link, and pasted it into your browser's address bar, it would not send a referrer header, and Google wouldn't know where you got the link from.
Most protocols don't even have a way of sending a referrer, and ping certainly doesn't.
Did you just mean you want to block all traffic from other hosts? Meaning, if you have the IP Address of machine A, you want to prevent A from even pinging you?
That should be easy to do using a personal firewall. What OS are you using? I think Vista has that feature built in.
posted by delmoi at 7:56 PM on February 4, 2008