Forum Discussion
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 woul...
hooleylist
Feb 24, 2011Cirrostratus
Hi Bob,
You can manually add the datagroup entries via the GUI under Local >> Traffic >> iRules >> Datagroup tab. Or you could reference an external file. The format for an external file is in 10.0+ is:
class namevalue {
"name1" := "value",
"name2" := "value",
}
Another option would be to use the bigip.conf format in a separate file and then merge the file into the bigip.conf using 'b merge file'.
The format for an inbuilt datagroup in the bigip.conf is:
class namevalue {
{
"name1" { "value" }
"name2" { "value" }
}
}
Lastly, you could use iControl to upload an external datagroup file and then use a Codeshare example from Joe to reload it:
http://devcentral.f5.com/wiki/default.aspx/iControl/PingExternalClass.html
Aaron
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects