Forum Discussion
Application only need to access from 2 uris
- Mar 24, 2025
Hello saddiq_bilal
Try this -
when HTTP_REQUEST {
if { ([HTTP::uri] == "/uri1") } {
# Do nothing, meaning permit request
} elseif { ([HTTP::uri] == "uri2") } {
# Do nothing, meaning permit request
} elseif { ([HTTP::uri] == "any other uris") } {
# Do nothing, meaning permit request
} else {
# If the uri does not contain any of the previously matching values then reject the request
reject
}
}
Hello saddiq_bilal
Try this -
when HTTP_REQUEST {
if { ([HTTP::uri] == "/uri1") } {
# Do nothing, meaning permit request
} elseif { ([HTTP::uri] == "uri2") } {
# Do nothing, meaning permit request
} elseif { ([HTTP::uri] == "any other uris") } {
# Do nothing, meaning permit request
} else {
# If the uri does not contain any of the previously matching values then reject the request
reject
}
}
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