Forum Discussion
daboochmeister
Cirrus
Jul 29, 2015APM portal - user bookmarks to /my.policy - any way to redirect?
Environment: LTM 11.5.2 with APM
We have users who have bookmarked a link to our portal, but did so after accessing, so the bookmark has /my.policy in the URL. Then they shared it. Widely. So n...
Michael_Jenkins
Cirrostratus
Jul 29, 2015You could try something like this:
when CLIENT_ACCEPTED {
Allow access to APM specific pages (this may not be necessary for the my.policy page)
ACCESS::restrict_irule_events disable
}
when HTTP_REQUEST {
if { [HTTP::uri] equals "/my.policy" } {
log local0. "Path: my.policy"
log local0. " Access: '[ACCESS::policy result]'"
if { [ACCESS::policy result] equals "" } {
log local0. " Invalid request (user bookmark?)"
Redirect to the desired uri
HTTP::respond 302 Location "/"
return
}
}
}
If the user comes to the
my.policy page and the policy result is empty, then their session hasn't started (it should be something like not_started at this point I think).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