Forum Discussion
Shay_Ben-David1
Nimbostratus
Mar 25, 2008block access to domain
is there a way to filter access only to the domain root like www.mysite.com, and allow everything else, in order to allow users bookmarks and uri with specific url+uri
my irule is :
...
The_Bhattman
Nimbostratus
Mar 25, 2008Check this out
when HTTP_REQUEST {
if { NOT ( [string tolower [HTTP::host]] equals "www.mysite.com" ) } {
log local0. "client: [IP::client_addr], requested [HTTP::host][HTTP::uri]"
discard
}
}The logic here is anything NOT matching www.mysite.com is discarded
Hope this helps
/CB
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
