Forum Discussion
Aaron_S_01_1634
Nimbostratus
Feb 22, 2017iRule to redirect to home page if URI contains email address
Hey all,
We've gotten a request for an iRule on a system living on a legacy 10.x system (being decommed soon) that redirects to the home page if the URI contains an email address. If I were doi...
JG
Cumulonimbus
Feb 23, 2017Here's an alternative one based on what I thought you wanted:
when HTTP_REQUEST {
if { [HTTP::query] ne "" } {
if { [regexp {\y[^@]+@[\w.-]+\.\w+\y} [HTTP::query]] } {
HTTP::redirect "/"
}
}
}
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