Forum Discussion
ACCESS::restrict_irule_events disable
Hi all, I am using this to handle a 404 Error message I got when user enter a new URI when APM-Policy is not finished. To do this I do different variable settings to keep the original URI and then check if the URI starts with /renderer/access_notfound.php3. If so, do a access remove session and redirect to original URI.
Here is an example of the code I use:
when CLIENT_ACCEPTED {
ACCESS::restrict_irule_events disable
}
when HTTP_REQUEST {
if { ![info exists "init_uri"] } {
setting init_uri to original uri
set init_uri [HTTP::uri]
ACCESS::session data set session.server.init_uri $init_uri
}
if { [HTTP::uri] starts_with "/renderer/access_notfound.php3" } {
if { ( [HTTP::uri] ne [ACCESS::session data get session.server.init_uri] ) and not ( [ACCESS::session data get session.server.init_uri] eq "" ) } {
ACCESS::session remove
HTTP::redirect [ACCESS::session data get session.server.init_uri]
return
}
}
}I have some question about this:
Have this setting "ACCESS::restrict_irule_events disable" impact on performance?
Have you more documentation or examples using this?
Regards Erik
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