Forum Discussion
Nezar_125534
Nimbostratus
Nov 08, 2016Block URL
Hi
I want to config new iRule to block URL, for example:
I need allow only this website: and block any others URL.
Please help me.
Samir_Jha_52506
Noctilucent
Nov 08, 2016It will be very easy if you have any uri in url to block..
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/*" } {
drop
}
}
Modify irule accordingly OR
Use of data group
class blockthis {
"/path1"
"/Path2"
}
when HTTP_REQUEST {
if {[class match [string tolower [HTTP::uri]] equals blockthis } {
drop
}
- Nezar_125534Nov 09, 2016
Nimbostratus
when HTTP_REQUEST { if { [string tolower [HTTP::uri]] starts_with "/*" } { drop } }
Unfortunately it is not working.
- Samir_Jha_52506Nov 09, 2016
Noctilucent
Remove * from Uri else use data group irule. Problem will solve when HTTP_REQUEST { if { [HTTP::uri] starts_with "/" } { drop } }
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