开发者

do you need captcha validation in newsletter subscription?

I am using a custom captcha php script along with news letter scripts to let users subscribe using an email id. The method of registration is based on jQuery.post command.

My question is that am I really safe If I remove the captcha validation from my subscription script. The subscription is simple. For example

mydomain/subscribe.php?email=myemail@somedomian.com

The subscribe.php i开发者_Go百科s called along with email as parameter using jQuery.post command. I am new to web programming stuff and don't have much idea about spammers in conjunction with above scenario. Any advise would greatly be appreciated.

Thanks


Spambots fill out every form they can get their hands on.

I receive subscriptions from bots everyday and I'm slowly adding captchas to all forms.

A bot does not know if the form he is filling out is for a subscription, a contact form or a mass mailing opportunity.

If you don't protect yourself by either using captchas or moving some of the logic into javascript functions, you will send emails to all these addresses.

This increases your traffic, decreases your control over your subscribers, makes a mess out of your stats and sometimes you might send an email to users that didn't want to subscribe because a bot has subscribed thru a trick (i.e. realuser+buy-viagra-now@gmail.com also reaches the user realuser@gmail.com).

So my advise: stay with the captcha Or: modify your form to make more use of javascript (i.e. load the form via ajax), because bots are not normal users with a browser, they only simulate them


I've never heard of spamming subscription lists.
Spammers are known for sending their own spam, not subscribing to someone's else one %)


From the answers that I have read only the one from favo is really true. A spambot is a computer program that most likely goes one by one in google and searches your page for any input box and submit button.

I have experience with spam and my subscriptions but adding a capcha can get you less subscriptions. Take it off for now and if you can moderate the emails before adding them to to the mailing list. If you see you are getting to much spam then go ahead and put up the capcha. But really one or two spam emails a week is normal.

So, I recommend moderation until it gets ridiculous.


Depdends. You'd probably safe against general malicious subscription attempts, but not against those that are specifically targeting your signup. I personally wouldn't chance it. Did a majority of subscribers complain about a difficult signup process?

What's the motivation behind your thinking of removing the captcha?


By removing the captcha, you would basically allow bots to subscribe.

Why they would want to - depends on your content. If the news letter contains no links, or only links to other non-interactive (or captcha protected) resources, you're good.

If your news letter contains link to resources where a bot can go and spam other people, chances are that they will.


Something simple I have done in the past is add a few hidden fields. Most bots will fill these in, a normal user couldn't so you simply put in some logic that says if the hidden fields contain data simply do nothing.

It is not fail safe but it certainly has stopped large amounts of bot sign ups on sites where I have implemented it.


I am using code like this:

jQuery.post("php/varify_captcha.php", jQuery("#contact_form").serialize(),function(result, status){
if(status == "success"){
jQuery.post("php/send_mail.php", jQuery("#contact_form").serialize(),function(result, status){
 alert(status);
}
}
}

First, captcha is validated then mail is sent. My question that should I move the captcha validation inside "send_mail.php"? I have no idea about spams and their ability to read and execute the code. If yes, then they can directly call the "send_mail.php". Let me if above method is safe or shall I move captcha validation inside the "send_mail.php" to make code bit more safer.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜