Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #54476

Antispam measures circumventing

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <jugurtha.hadjar@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.016
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'algorithm': 0.04; 'beginner': 0.05; 'expressions': 0.07; 'ugly': 0.07; '"if': 0.09; 'converted': 0.09; 'subject:skip:c 10': 0.09; 'wrote': 0.14; 'posted': 0.15; 'exist.': 0.16; 'inverse': 0.16; 'it".': 0.16; 'letters.': 0.16; 'sense,': 0.16; 'thanks,': 0.17; 'obviously': 0.18; 'unlike': 0.19; 'written,': 0.19; 'written': 0.21; 'saying': 0.22; 'header:User-Agent:1': 0.23; 'text,': 0.24; "i've": 0.25; 'this:': 0.26; 'function': 0.29; 'character': 0.29; "doesn't": 0.30; 'code': 0.31; 'lines': 0.31; 'spam,': 0.31; 'skip:m 30': 0.32; 'regular': 0.32; 'comment': 0.34; 'maybe': 0.34; "can't": 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'message-id:@gmail.com': 0.38; 'to:addr:python- list': 0.38; 'list,': 0.38; 'generating': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'even': 0.60; 'remove': 0.60; 'john': 0.61; 'back': 0.62; 'address': 0.63; 'name': 0.63; 'contact': 0.67; 'skip:r 40': 0.68; 'capital': 0.73; 'obvious': 0.74; '*really*': 0.84; 'detecting': 0.84; 'email addr:hotmail.com,': 0.84; 'etc..': 0.84; 'me).': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=dVVZhTnLj89NQn2sobRl4eEXlwcSxr9eydT3fThiP3U=; b=cD0eusyUtw+CUxoEBQXAdRstTMpaCtkOhy9bEL//K8Msuf5u8bcvXSCvwNP9c+t/oG tfgeasQXRmxjeCGl5rz0e8g2xehG0v2ZcbmadJttcLDfmMdSOLmrwd71dznfJOVxxVqO VqwMnTdQo0XgKoqNcpB/POnTTPLuCb6nZ4OpCxEdlSdHS59DxGlpbdaEnITHVOg05XwD fEd7WIZ2aEJ8KLeiWh/siLF3ACABHoe5YnJhkvJupjSf9P5P2Q43kYmTd2+k0sSWBTIK Mc8fB5qxpj1WqEHeAzlJST5oDqf8wwx0qOJjoUeK3p2VjkzDGNn3okeeQXmsxlIVa+JH G8/w==
X-Received by 10.14.241.74 with SMTP id f50mr11380552eer.29.1379689480449; Fri, 20 Sep 2013 08:04:40 -0700 (PDT)
Date Fri, 20 Sep 2013 16:04:34 +0100
From Jugurtha Hadjar <jugurtha.hadjar@gmail.com>
User-Agent Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130803 Thunderbird/17.0.8
MIME-Version 1.0
To python-list@python.org
Subject Antispam measures circumventing
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.184.1379689820.18130.python-list@python.org> (permalink)
Lines 53
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1379689820 news.xs4all.nl 15909 [2001:888:2000:d::a6]:53529
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:54476

Show key headers only | View raw


Hello,

# I posted this on the tutor list, but my message wasn't displayed


I shared some assembly code (microcontrollers) and I had a comment wit 
my e-mail address for contact purposes.

Supposing my name is John Doe and the e-mail is john.doe@hotmail.com, my 
e-mail was written like this:

REMOVEMEjohn.doSPAMeSPAM@REMOVEMEhotmail.com'

With a note saying to remove the capital letters.

Now, I wrote this :

for character in my_string:
...     if (character == character.upper()) and (character !='@') and 
(character != '.'):
...             my_string = my_string.replace(character,'')


And the end result was john.doe@hotmail.com.

Is there a better way to do that ? Without using regular expressions 
(Looked *really* ugly and it doesn't really make sense, unlike the few 
lines I've written, which are obvious even to a beginner like me).

I obviously don't like SPAM, but I just thought "If I were a spammer, 
how would I go about it".

Eventually, some algorithm of detecting the 
john<dot>doe<at>hotmail<dot>com must exist.


Also, what would in your opinion make it *harder* for a non-human to 
retrieve the original e-mail address? Maybe a function with no inverse 
function ? Generating an image that can't be converted back to text, etc..

If this is off-topic, you can just answer the "what is a better way to 
do that" part.

Thanks,



-- 
~Jugurtha Hadjar,

-- 
~Jugurtha Hadjar,

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Antispam measures circumventing Jugurtha Hadjar <jugurtha.hadjar@gmail.com> - 2013-09-20 16:04 +0100
  Re: Antispam measures circumventing Jussi Piitulainen <jpiitula@ling.helsinki.fi> - 2013-09-20 19:23 +0300
    Re: Antispam measures circumventing Chris Angelico <rosuav@gmail.com> - 2013-09-21 02:30 +1000
    Re: Antispam measures circumventing Chris Angelico <rosuav@gmail.com> - 2013-09-21 02:31 +1000

csiph-web