3 ms·
From the Wikipedia: > The technique involves making repeated web site requests using a fake referer URL to the site the spammer wishes to advertise. Sites that
by kazinator 11y ago
From the Wikipedia:
> The technique involves making repeated web site requests using a fake referer URL to the site the spammer wishes to advertise. Sites that publish their access logs, including referer statistics, will then inadvertently link back to the spammer's site.
So, don't publish your access logs and referrer statistics!!! Doh?
Who in their right mind would pull a stupid stunt like that?
Linking back to the spammer's site isn't the only problem. The URLs could be malicious.
You don't ever want to blindly re-publish any piece of data that was handed to you by a random client.
The proposed Apache mod_rewrite rules are completely wrongheaded, and just add to your administrative load (since the blacklist changes over time).
Okay, suppose you really, really want to publish these stats. What can you do?
Firstly, filter the data rigorously, to ensure that it is syntactically correct URLs and nothing else. Nothing that will inject HTML into a page if it is blindly inserted and whatnot. Secondly, mangle URL's such that they are still recognizeable, but don't actually resolve. For instance "http://spamming-jerks.com" http://spamming-jerks.com" can be published as "http: //spamming-jerks dot com", or some other modification that can be easily reversed by a human.