Forum Moderators: phranque
I would like to increase statistics accuracy by banning search engine robots from clicking banners. I already know which IP ranges to block.
Is there a way to do this effectively?
I would think there is a possibility using .htaccess, but am not sure how to do this as the link is not in a folder such as
http://www.example.com/ads/?click&id=1&pl=1
but like this:
http://www.example.com/?click&id=1&pl=1
http://www.example.com/?click&id=2&pl=1
http://www.example.com/?click&id=3&pl=1
Is it possible to block robots from following any link that looks like this?
http://www.example.com/?click
Obviously I don't want to ban the robots from the entire site.
HL
[edited by: engine at 3:16 pm (utc) on June 1, 2006]
[edit reason] examplified and de-linked [/edit]
If it's yours, then you can use robots.txt for Google; they support including "?" in Disallow directives. For others, you could rewrite the request to a 'harmless' internal path -- one that won't affect your stats.
Jim