Forum Discussion
Blocking file type by referrer - redirecting afterwards
Does anyone know if using this iRule will allow us to allow a blank referrer using referer_allowed_hosts? We have some email blasts that go through where people are clicking on links from emails, and they're being blocked as they are coming from a host that isn't allowed (my personal Outlook email for instance)
I tried adding "" to the data group to simulate an empty referrer, but no luck.
The script I am referring to is here:
https://devcentral.f5.com/wiki/irules.BlockReferersByPathorFiletype.ashx
- Joe_PipitoneSep 09, 2013
Nimbostratus
I think we got this one! Although it's probably a bit messy, it works. It's blocking what it needs to, and is allowing links direct to PDF's in emails to be opened! if { $refer_host == "" || [matchclass $refer_host contains referer_allowed_hosts] } {
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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