Forum Discussion
stevanskoric_31
Nimbostratus
May 03, 2017Block URL using WildCard
Hi,
Can someone assist me with creating an iRule that will block/reject request for URL with wildcard?
Example: (reject request for url below)
http://.domain.com/abc/abc/
Please let me know or point me to document that might explain this.
Thank you, S
- stevanskoric_31
Nimbostratus
forum has "removed" wildcard.
URL is http://[wildcard].domain.com/abc/abc/[wildcard]
- JG
Cumulonimbus
Here's one in its simplest form:
when HTTP_REQUEST { if { ( [string tolower [HTTP::host]] ends_with ".domain.com" ) && ( [HTTP::path] starts_with "/abc/abc/" ) } { reject } }
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