[nycbug-talk] Re: Spam probes

Bob Ippolito bob
Tue Nov 9 17:22:52 EST 2004


On Nov 9, 2004, at 17:10, George Georgalis wrote:

> On Tue, Nov 09, 2004 at 12:33:39PM -0500, Ah Pook wrote:
>> On Tuesday 09 November 2004 11:45 am, a nice bug wrote:
>>> It's not even hardly safe to try to obfuscate addresses any more, 
>>> they
>>> still get picked up, since spammers' harvesting scripts seem to have 
>>> a
>>> mind-boggling understanding of linguistics and word construction
>>> these days. Smart enough to always skip the anonimized addresses on
>>> craigslist too, from what I can tell..
>>
>> I've been having luck so far (knock on wood) with using entities - do
>> something like s/(.)/"&#".ord($1).";"/eg which turns my address into
>>
>> ahpook@opt
>> online.net
>>
>> It's nice because it renders fine on the page, and you can still stick
>> that into a mailto: and have it work.
>
> nice regex! I know you can run "mailto:" through it too to help hide 
> it.
> err but it doesn't seem to work...
>
> echo galis.org | sed -e 's/(.)/"&#".ord($1).";"/g'
> galis.org

I don't know if sed has any sort of ord operator..

% echo "galis.org" | python -c "print ''.join([('&#%d;' % ord(c)) for c 
in raw_input()])"
galis.org

-bob





More information about the talk mailing list