We use cookies on our website to ensure we provide you with the best experience on our website. By using our website, you agree to the use of cookies for analytics and personalized content.This website uses cookies. More Information
It seems like your browser didn't download the required fonts. Please revise your security settings and try again.
Barracuda Web Security Gateway

How can I block IP-based surfing on the Barracuda Web Filter?

  • Type: Knowledgebase
  • Date changed: 10 years ago
Solution #00001399

Scope:
All Barracuda Web Filters, all versions of firmware

Answer:
Use this pattern on the Block/Accept > URL Patterns page to block any IP-based surfing (e.g. http://69.36.255.106). It is important to note that IP exemptions still take precedence. The following should be entered as one line:

:\/\/((2(5[0-5]|[0-4][0-9])|1?[0-9]{1,2})\.){3}(2(5[0-5]|[0-4][0-9])|1?[0-9]{1,2})\/

Additional Notes:
Using this regular expression may also block applications attempting to access remote servers over port 80 using URLs containing IP addresses instead of hostnames. This is not common, but this regular expression may inadvertently block an application that communicates to remote servers over HTTP, by IP address. If you are using this regular expression and need to allow certain IP-based destinations, enter those destinations as IP exemptions on the Block/Accept > IP Block/Exempt page (these take precedence over URL patterns like the one described above). For more information on Block/Accept rule precedence, see Solution #00002442.

Link to This Page:
https://campus.barracuda.com/solution/50160000000GRp2AAG