Forum Discussion
dpeterson_24304
Nimbostratus
Sep 15, 2011Syntax errors on match_glob?
I've got a remarkably boring rule that I'm getting a syntax error on, and I don't understand why. I've also tried string_match and am getting similar errors, but I'm just not seeing what I'm doing wr...
Dharmendra_2243
Nimbostratus
Nov 09, 2010Can you please send me a iRule for this ? I will be highly thankful to you.
- If you use reject, instead of TCP::release, the TCP connection will be reset.
when HTTP_REQUEST { if { [string tolower [HTTP::host]] contains "domain.com" }{ Reset the TCP connection reject End processing this rule event return } }
when HTTP_REQUEST { if { not ([string tolower [HTTP::host]] contains "allowed.domain.com")}{ Reset the TCP connection reject End processing this rule event return } }
when HTTP_REQUEST { if { not ([matchclass [string tolower [HTTP::host]] contains $::allowed_hostnames])}{ Reset the TCP connection reject End processing this rule event return } }
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