Forum Discussion
MichaelMa_61351
May 02, 2011Nimbostratus
Block Referer in Shared F5
Hello,
We are using shared F5 appliance which service other www sites as well as ours. I would like to know, if it is possible by iRules or by other means in F5 to block a list of HTTP requests ...
hooleylist
Aug 14, 2012Cirrostratus
Hi Auz,
Here's a simple example for that:
when HTTP_REQUEST {
if {[string tolower [URI::host [HTTP::header User-Agent]]] contains "google.com"}{
HTTP::respond 200 content {Blocked!}
}
}
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