Global Email Filter for URL

commanderclif

Member
Aug 19, 2017
17
0
1
Jacksonville FL
cPanel Access Level
Website Owner
I'm trying to create a Global Email Filter that will block a common characteristic of URL formatting but so far unsuccessful.

I get numerous emails that contain a URL with the following formatting:
Example.win


So consistently there is a (.win/) in all the URLs in these emails. Would like to create a filter that would recognize those characters and discard any messages with that.

Any advice would be appreciated!
THANK YOU!
 
Last edited by a moderator:

commanderclif

Member
Aug 19, 2017
17
0
1
Jacksonville FL
cPanel Access Level
Website Owner
My first post was a mess, apologies but thanks to the moderator for removing the spam links I was showing as example. the formatting of the URLs always has:
[random].[random].win/[random]

so the (.win/) is always consistent with [random] changing every time.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello,

You could use a custom regular expression in your filter rule, but keep in mind assistance with developing custom regular expressions falls outside the scope of our support. You may find some of the examples in the following thread useful as proof-of-concept:

Need to filter ALL email

Thanks!