You are not logged in.

#1 2009-10-11 5:40 am

ih8spam
Member
Registered: 2009-03-25
Posts: 266

Bug in your API ?

I have been noticing the last couple of days that a certain spam-bot that tries to register on my board is failing to be reported here .

username: Beity
email: harssem+Anaeni@gmail.com
IP: 94.23.226.25

I found out that it's the "+" in the email address that's throwing an error when my board tries to submit that email address to SFSs reporting URL,
when I drop the "+" from the email address, the report goes through fine .

reporting manually through the websites report form works OK with or without the "+"

and according to Wikipedia, a "+" sign is a legal email address character:
http://en.wikipedia.org/wiki/E-mail_address

The local-part of the e-mail address may use any of these ASCII characters:
Uppercase and lowercase English letters (a-z, A-Z)
Digits 0 through 9
Characters ! # $ % & ' * + - / = ? ^ _ ` { | } ~
Character . (dot, period, full stop) provided that it is not the first or last character, and provided also that it does not appear two or more times consecutively.


"Two years from now, spam will be solved."
Bill Gates, founder of Microsoft, 2004

Offline

#2 2009-10-11 11:26 am

pedigree
uıɐbɐ ʎɐqǝ ɯoɹɟ pɹɐoqʎǝʞ ɐ buıʎnq ɹǝʌǝu ɯ,ı
From: New Zealand
Registered: 2008-04-16
Posts: 7,104

Re: Bug in your API ?

We had this reported before and I fixed it in the query.  Are you encoding the email address before submitting it?  Youll need to provide some more details about the string youre submitting, what url your hitting and your tools and board software.

Post those details and once I escape from this kids birthday party, Ill look at the code smile

Offline

#3 2009-10-11 1:57 pm

ih8spam
Member
Registered: 2009-03-25
Posts: 266

Re: Bug in your API ?

yeah, your probably right, I may need to escape the non alphanumeric characters with the percent symbol .

I'll look into it later .

but here is the submission string my board sends .

http://www.stopforumspam.com/post.php?username=Beity&ip_addr=94.23.226.25&email=harssem+Anaeni@gmail.com@gmail.com&api_key=<my API key>

"Two years from now, spam will be solved."
Bill Gates, founder of Microsoft, 2004

Offline

#4 2009-10-11 3:28 pm

ih8spam
Member
Registered: 2009-03-25
Posts: 266

Re: Bug in your API ?

It works now, escaping the non alphnumeric characters seems to do the trick !

harssem%2Banaeni%40gmail.com

I needed to add the PHP "urlencode" command to my script .

thanks for the tip, pedigree smile


"Two years from now, spam will be solved."
Bill Gates, founder of Microsoft, 2004

Offline

#5 2009-10-11 5:13 pm

pedigree
uıɐbɐ ʎɐqǝ ɯoɹɟ pɹɐoqʎǝʞ ɐ buıʎnq ɹǝʌǝu ɯ,ı
From: New Zealand
Registered: 2008-04-16
Posts: 7,104

Re: Bug in your API ?

Yeah, without urlencode, your script will be submitting the + as a space

Offline

Board footer

Powered by FluxBB

Close
Close