Forum Discussion
yosry92_331999
Altostratus
Dec 03, 2017how can i block this url?
Hi ,i want to block this url by irule
/browse.php?id=125
i want to block it by id=125
Thank you .
- Dec 03, 2017
There are many ways to block the ID. I have prepared the below irule which will match ID value
& reject connection. Use Datagroup class if you have multiple ID.125when HTTP_REQUEST { if { [URI::query [HTTP::uri] id ] contains 125 } { log local0. "Query string of URI [HTTP::uri] is [URI::query [HTTP::uri]]" reject } }OR-- If you have multiple ID value
when HTTP_REQUEST { value_id is object, you can add multiple id value in class. if {(matchclass value_id contains [URI::query [HTTP::uri] id]) } { reject } }
Samir_Jha_52506
Noctilucent
Dec 03, 2017There are many ways to block the ID. I have prepared the below irule which will match ID value
125 & reject connection. Use Datagroup class if you have multiple ID.
when HTTP_REQUEST {
if { [URI::query [HTTP::uri] id ] contains 125 } {
log local0. "Query string of URI [HTTP::uri] is [URI::query [HTTP::uri]]"
reject
}
}
OR-- If you have multiple ID value
when HTTP_REQUEST {
value_id is object, you can add multiple id value in class.
if {(matchclass value_id contains [URI::query [HTTP::uri] id]) } {
reject
}
}
yosry92_331999
Altostratus
Dec 03, 2017Thank you very much :)
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