cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Trying to write a regular expression block policy but not having much luck

We are trying to write a regular expression block policy to deal with new TLD's that seem to appear daily. We have tries multiple combinations of strings but so far not having any luck. Has anyone attempted and been successful in getting a regex to work inside a policy. We currently have a global block policy that is ip/domain based but would like to use a regex if possible to control the amount of entries added daily. I have included an example below:

The URLs go like this http://(WWWsometimes).domain.tld/downloads(random 4 digits)/  

(.[A-z]{2,63}\/download\d{4}\/)

Any input or suggestions is appreciated.

Thanks,

Dominick

5 Replies

Re: Trying to write a regular expression block policy but not having much luck

Could you please specify which product you are referring to? We can then move this to that area for better exposure and better assistance.

Cliff
McAfee Volunteer

Re: Trying to write a regular expression block policy but not having much luck

Sorry, this is on the Web Gateway.

Re: Trying to write a regular expression block policy but not having much luck

Thank you   Done.

All the Best

CD

Cliff
McAfee Volunteer

Re: Trying to write a regular expression block policy but not having much luck

Successfully moved from Community Support to Web Gateway  > Discussions

Cliff
McAfee Volunteer
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 6 of 6

Re: Trying to write a regular expression block policy but not having much luck

Hi Dom,

Hows about:

URL.Domain is in list [x,y,z]

AND URL.Path matches regex(\/downloads\d{4}\/)

Best Regards,

Jon