Forum Discussion
MichaelMa_61351
Nimbostratus
May 02, 2011Block 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 ...
Colin_Walker_12
May 02, 2011Historic F5 Account
Yes, you could definitely do this. There are a couple of options.
The easiest would be to do this on a per Virtual basis, assuming you're on a separate VIP from the other sites on the device. If you are, then all you'd need is a simple iRule looking for the referrer and denying access accordingly.
If you're sharing a VIP with other sites, then you'd need to add some logic that first checks for the host of the incoming request to ensure that the request is bound for your application. Then you could use the same logic to determine if the referrer is in your deny list, and drop/reject as you see fit.
If you need some help getting this code started, let us know.
Colin
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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