Forum Discussion
Joe_Pipitone
Nimbostratus
May 05, 2015iRule - HTTP::is_redirect failing
We have used this iRule for many years to block PDFs from being accessed directly, unless a user logs in and comes from an allowed domain.
After upgrading from 10.2.4 to 11.2.1 and then to 11.6, th...
nitass
Employee
May 06, 2015the redirection back to the website's home page does not occur - it allows the user to download the PDFs.
does request come with referer header? if it does not exist or null, it will be allowed (to download pdf), won't it?
if { $refer_host == "" || [matchclass $refer_host contains referer_allowed_hosts] } {
return
}
by the way, since you are running 11.6.0, you should replace global variable and matchclass with static global variable and class command.
static
https://devcentral.f5.com/wiki/iRules.static.ashxclass
https://devcentral.f5.com/wiki/iRules.class.ashxHelp 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