Forum Discussion
Adam_409
Nimbostratus
Jun 05, 2011Blocking the URL
Dear Dev Team,
Could you pls help in blocking any
request coming to F5 with this format: http://www.xyz.com.us/portalu/connectOTS
Best Regards,
Adam
6 Replies
Sort By
- Adam_409
Nimbostratus
Dear Dev Team, - nitass
Employee
it should look like this. anyway, i've not yet tested it.when HTTP_REQUEST { if {([string tolower [HTTP::host]] equals "www.xyz.com.us") \ and ([string tolower [HTTP::uri]] equals "/portalu/connectots")} { drop } }
- Colin_Walker_12Historic F5 AccountYep, that'd do it. You could also change that to a reject, if you want to notify the client that the connection didn't go through, or you could do an HTTP::respond if you want to get really fancy and send some kind of customized error message.
- JRahm
Admin
Please read hoolio's post on URL obfuscation techniques before relying on this as a holistic security practice: - muzammil_88686
Nimbostratus
Dear Steve, - What_Lies_Bene1
Cirrostratus
See my response in the correct post: https://devcentral.f5.com/internal-forums/aft/2164949.
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