How to Block IP Addresses in URLΒΆ

It is sometimes required to block access to web sites by their IP addresses (this technique is typically used by users to avoid URL filtering). In order to do that open the Web Filter / Policies / Policy / Filtering Rules / Domains and URLs and add the following regular expression:

https?://\d+\.\d+\.\d+\.\d+/.*