So lately it seems that a certain Chinese company has started going around and spamming Trac sites by creating tickets promoting who knows what (honestly, I have no idea, it’s all in Chinese). Once was annoying, twice pissed me off, so I added this to my httpd.conf:
RewriteCond %{HTTP_REFERER} ^http://www\.google\.cn/search?.*q=NEW\+TICKET.* RewriteRule (.*) http://www.consumptionjunction.com/downloadsnew/cj_52447.jpg [R]
I wouldn’t recommend visiting that URL if you’re easily offended. Seriously, don’t go there.
Just a quick follow up… got the sucker!
221.216.132.207 – – [04/May/2006:06:52:01 -0700] “GET /trac/query?status=closed&milestone=3.0.beta8 HTTP/1.1” 302 282 “http://www.google.cn/search?q=NEW+TICKET+Trac&hl=zh-CN&lr=&newwindow=1&start=120&sa=N” “Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)”
Well, I guess he got the message since he has changed his search query. New rule:
RewriteCond %{HTTP_REFERER} ^http://www\.google\.cn/search?.*q=(NEW|\+|TICKET|Trac){3}.* [NC]
RewriteRule (.*) http://www.consumptionjunction.com/downloadsnew/cj_52447.jpg [R]