Forum Discussion
Joe_Pipitone
Nimbostratus
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_Pipitone
Sep 09, 2013Nimbostratus
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] } {