Bob_10976
Feb 18, 2011Nimbostratus
iRule to Block Google and other Search Engines
Hello all,
We would like to use an iRule to block google and other search engines from crawling our sites and was hopeing someone could point me in the right direction. In the past we would use robot.txt files, however with some major chances to our envirnoment it seems it would be simply to apply an iRule.
We did some research and found the below code, however I'm not sure how old it is or if it will work with our LTM, ver 10.2.x, The site is: http://blog.regisdonovan.org/2010/1...ic-by.html
when HTTP_REQUEST {
if { [HTTP::header "User-Agent"] contains "AnnoyingRobot" }
{
drop
return }
}
Thanks,
Bob