Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Global Email Filter for URL

Discussion in 'E-mail Discussions' started by commanderclif, Aug 19, 2017.

Tags:
  1. commanderclif

    commanderclif Registered

    Joined:
    Aug 19, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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!
     
    #1 commanderclif, Aug 19, 2017
    Last edited by a moderator: Aug 19, 2017
  2. commanderclif

    commanderclif Registered

    Joined:
    Aug 19, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,220
    Likes Received:
    1,376
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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!
     
Loading...

Share This Page