cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
dconverse
Level 7

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

0 Kudos
5 Replies
catdaddy
Level 20

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
0 Kudos
dconverse
Level 7

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

Sorry, this is on the Web Gateway.

0 Kudos
catdaddy
Level 20

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

Thank you   Done.

All the Best

CD

Cliff
McAfee Volunteer
0 Kudos
catdaddy
Level 20

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
0 Kudos
McAfee Employee

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

0 Kudos