This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Regex URLs for http rule

Hi,

could someone tell me how to define a regex Url under

  • Protection
  • >Web Protection
  • >Web Content Filter
  • Add http rule

everything I try is not a valid URL, is this a known bug or are there any hidden fields I have to enter? Non regex URLs are fine, like entering google.com but Regex like

 ^https?://([A-Za-z0-9.-]*\.)?google\.com\.?/

doesn't work.

Kind regards


Achim



This thread was automatically locked due to age.
  • Hi AchimSaur,

    I tried the steps you have given and was able to successfully save the regular expression. I copied and pasted the exact regex, and it saved without issue under the "HTTP Scanning Rules" section.

    Can you please double check you updated to the latest version with no updates pending?
  • There are some example regex on the web exceptions that come built in.  You cant include https?:// as part of the regex in the XG. 

    However, make sure you include the ^, there is a huge performance hit if you don't.

     

    Example

    ^([A-Za-z0-9.-]*\.)?google\.com/