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


Groups > comp.lang.python > #54476

Antispam measures circumventing

Date 2013-09-20 16:04 +0100
From Jugurtha Hadjar <jugurtha.hadjar@gmail.com>
Subject Antispam measures circumventing
Newsgroups comp.lang.python
Message-ID <mailman.184.1379689820.18130.python-list@python.org> (permalink)

Show all headers | 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