Forum Discussion
rgk_76855
Nimbostratus
Nov 12, 2009URL/Web Filtering
We are the Core Internet Backbone Service Provider, our core router is connected to outside world for internet services in our country, we have strong enforcement to block few websites from our teleco...
The_Bhattman
Nimbostratus
Nov 12, 2009Hi RGK,
Here is a simple one that blocks access based on hosts using a datagroup
class blocked_hosts {
"wwwa.example.com"
"wwwb.example.com"
"wwwc.example.com"
}
when HTTP_REQUEST {
if {[matchclass [HTTP::host] eq $::blocked_hosts ] } {
HTTP::respond 404
}
}
I 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