|
Donation/Premium |
|
 |
|
|
|
|
|
|
|
Survey |
|
 |
|
|
|
|
|
|
|
 |
 |
| View previous topic :: View next topic |
| Author |
Message |
Ghol
Trooper

 Joined: Dec 14, 2003 Posts: 14 Location: Germany
|
Posted: Tue Dec 16, 2003 1:40 pm Post subject: |
|
|
@Ikeb, I don't disagree agree at all about all the surely's... I was floating an idea. You are right, the possibilities are so endless. Talking of which, I just digested the thread ( /postx8096-0-0.html) about recognising the fake HTML code splitting up a word, and how endless that could become.
By the way, the link to Andrey's site mentioned in that thread has been removed at least temporarily because of the GAIN/gator problem, and they are contacting Andrey about it.
I've been getting light font hits, so thanks @all for this useful discussion.
|
|
| Back to top |
|
 |
denn988
Guest IP: 66.44.*.*
|
Posted: Tue Dec 16, 2003 2:17 pm Post subject: |
|
|
Ghol,
Concerning your thoughts about matching background colors to font colors.
While you more than likely could not write a RegExp that would find closely matching colors used for the background and the actual font, there is a good possibility that a filter could be written that would find those cases where the body color of the message was set at one certain color.....and a subsequent font color was set to exactly that color.
Body color=#CECECE
Font color=#CECECE
The problem woth doing that is that the Spammer could easily offset the font color by one increment from the body color:
Body color=#CECECE
Font color=#CFCECE
That would be very difficult to trap using RegExp.
|
|
| Back to top |
|
 |
denn988
Guest IP: 66.44.*.*
|
Posted: Tue Dec 16, 2003 6:04 pm Post subject: |
|
|
Here is the basis for a RegExp that will trigger when the body color has been set to a specific color....and a font color found later in the message is made to match exactly that body color.
| Code: | | <body[^>]*? bgcolor=(3D)?"?#([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f][0-9a-f]) |
| Code: | | .*?<[^>]*?font[^>]*? color=(3D)?"?#\2\3\4[^>]*?> |
NOTE:
I have broken the expression up into two parts so that it will not cause scrolling in the post. Paste the second part of the code immediately after the first part...with no interveneing charactors.
I have done limited testing on it....and I will not bother to explain how it works. Those of you out there that have been learning RegExps will be able to study the code...and the HELP files for TRegExpr to figure out how it works.
You will need a full understanding of 'backreferences' (/1 - /9) in order to see what this filter is doing. In TRegExpr there is a dropdown just below the 'Regular Expression input box' that you can see the 'subexpressions' contain in the RegExp. That will give you the numbers to be used in the 'backreferences'.
There are possibilities for a bit more flexibility in the expression, to even have the filter match font colors that are slighty different from the body color...but I would suggest that if you do create a more capable RegExp...please do NOT post it.
Posting the basics will go a long way to help others....but specifics that will increase the flexibility of a particular filter strategy (such as this one) are best kept away from 'dumb' Spammer eyes.
I hope that everyone will understand this.....and respect my wishes on this.
Otherwise I will quit posting these little gems.
|
|
| Back to top |
|
 |
Ghol
Trooper

 Joined: Dec 14, 2003 Posts: 14 Location: Germany
|
Posted: Tue Dec 16, 2003 6:09 pm Post subject: |
|
|
@Denn998: and have you been knighted yet?
Thanks: I find expert's examples extremely valuable in learning myself.
Don't quit!
|
|
| Back to top |
|
 |
Ikeb
Special Response Team Forums Admin
 Joined: Apr 20, 2003 Posts: 16515
|
|
| Back to top |
|
 |
denn988
Guest IP: 66.44.*.*
|
|
| Back to top |
|
 |
Ikeb
Special Response Team Forums Admin
 Joined: Apr 20, 2003 Posts: 16515
|
|
| Back to top |
|
 |
IP: 68.51.*.*
Guest
|
|
| Back to top |
|
 |
Keithmj
Sergeant
 Premium Member
 Joined: Oct 25, 2004 Posts: 92 Location: USA
|
Posted: Wed Jun 21, 2006 4:21 pm Post subject: |
|
|
Hi..Would the filter read?... The Body Contains RegExpr <font [^>]*? color=(3D)?["]?(white|#(F[6-9A-F]){3})["]?(?# very light colored fonts )
As that is how I have it...I put in the name of ColorKiller to help me see what filter is used..
[enabled],ColorKiller,ColorKiller,33023,AND,Delete,Body,containsRE,"<font [^>]*? color=(3D)?[""]?(white|#(F[6-9A-F]){3})[""]?(?# very light colored fonts )" _________________ Juggle-On..Cheers, Keithmj
ClipMate
Snag-it
NoteTabPro
|
|
| Back to top |
|
 |
|
|
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001 phpBB Group
|