Spam Filter ISP Support Forum

  New Posts New Posts RSS Feed - Regex Help
  FAQ FAQ  Forum Search   Register Register  Login Login

Regex Help

 Post Reply Post Reply
Author
Trinidad View Drop Down
Guest Group
Guest Group
Post Options Post Options   Thanks (0) Thanks(0)   Quote Trinidad Quote  Post ReplyReply Direct Link To This Post Topic: Regex Help
    Posted: 17 July 2003 at 4:39pm

I need help with regex

I have put into my keywords   src="http  to block any email that has images that the source is a website, works great, the problem is that i need to exclude anything that has "atx" in the http://www. address, ive tried a few things but i just cant get it right, any help would be greatly appreciated, Thanks

Back to Top
Desperado View Drop Down
Senior Member
Senior Member
Avatar

Joined: 27 January 2005
Location: United States
Status: Offline
Points: 1143
Post Options Post Options   Thanks (0) Thanks(0)   Quote Desperado Quote  Post ReplyReply Direct Link To This Post Posted: 17 July 2003 at 4:52pm

Trinidad,

src="http   is way to general a block.  For example, just about everything you get from Microsoft will get blocked by this (which may or may not be a bad thing).  I have worked with several iterations of this kind of block.  I am still changing them as I gather more statistics but here is my latest:

The first on gets rid of url's using "Dotted IP" notation rather than FQDN's.  This can be dangerous but we have taken the stance that if you can't put a DNS host name on it, we don't want it.

(href="http://+[\d])

This one detects http OR 3dhttp  Then //  Then 0 - 15 of ANY character Then a % OR an @  followed by just about anything.


((http|3dhttp)://.{0,15}(%|@)[(\d|\w)])

While they don't drop all the "remote" refs, they are doing an excellent job with very few "False Positives"

Hope this helps.

Dan S.

 

 

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.137 seconds.