Blocking img src=cid messages |
Post Reply | Page <12 |
Author | |
gbrayut
Newbie Joined: 17 May 2006 Location: United States Status: Offline Points: 3 |
Post Options
Thanks(0)
|
I had a problem with these types of messages before, and I was able to remove a lot of them by detecting a pattern in the HTML (ie.. DIV contains Font style and IMG tag... ).
Here is an example of the regex I used ((?i)div[<>]+font\sface=3DArial\ssize=3D2[<>]+img\salt=3D""\shspace=3D0=20\s+src=3D"cid\:00) The emails in paticular had a common pattern of tags, and the cid always started with 00. If you view the source of the email you may be able to pickup on this type of pattern. |
|
--
Greg Bray IT Manager OQ Measures LLC |
|
MartinC
Newbie Joined: 29 July 2005 Status: Offline Points: 25 |
Post Options
Thanks(0)
|
thats interesting Greg...
so just going for the first line of html before the cid information... like this one I just got with <DIV><FONT face=Arial size=2><IMG alt="" hspace=0 then a new line and starts src=cid:.... I've seen people with thunderbird doing a src=cid now with a business card attachment so you do have to be a bit careful. the big flaw to us talking about this is that we are No1 on Google searching for "blocking src=cid". :) |
|
Ray
Guest Group |
Post Options
Thanks(0)
|
I think the spammers have programmed MS Office into being an automated spam generator. These messages seem to be created by converting text into a .gif file that is split into smaller .gif files and re-assembled in MS Word. When you view the email html you don’t see the attached document or images only cid: references to the original document. If Word is the default mail editor in Outlook, you can click reply and are then able to select the individual image elements. If you copy the entire document (ctrl-a, ctrl-c) you can paste it into MS FrontPage and see the original html produced by Word. The images are embedded in the original Word document and referenced by the Outlook as src=cid: So you never see the original message in Outlook. Surprisingly Outlook does not indicate that the message/images are actually an attachment. Also Outlooks filters do not seem look at the html so you can't filter the src=cid. Unless someone knows of a MS solution, it appears that a third party program will have to be used by Outlook users. |
|
MokiTheGeek
Newbie Joined: 29 June 2006 Location: United States Status: Offline Points: 5 |
Post Options
Thanks(0)
|
I was using the follwing RegEx that was working great but found too many newsletters and community sites that triggered false positives by including embedded images within their mail.
Found several SPAM that tried to get through by breaking up the parts of the IMG tag so I made it look for many characters as long as it didn't run into the start of another tag. Use it if you like: (<img\x20)(.*?)(cid:[^<]*)(>) |
|
Post Reply | Page <12 |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
This page was generated in 0.240 seconds.