Forum Discussion
WK_98725
Sep 11, 2012Nimbostratus
iRules and robots.txt question
Got a quick question for the F5 and iRules experts out there. I have been asked about "putting a robots.txt file
on an LTM", and was wondering if that is possible, or even makes sense.
...
Kevin_Stewart
Sep 12, 2012Employee
I think you're really talking about two different things: 1) putting a robots.txt file on the BIG-IP for robots to consume, and 2) limiting robot access.
2 is generally covered by the link you provided.
1 is pretty straight forward:
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] equals "/robots.txt" } {
HTTP::respond 200 content "content of robots.txt..."
}
}
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