captcha

How to Verify whether a Robot is Entering Information

你说的曾经没有我的故事 提交于 2019-12-01 22:13:09
I have a web form which the users fill and the info send to server and stored on a database. I am worried that Robots might just fill in the form and I will end up with a database full of useless records. How can I prevent Robots from filling in my forms? I am thinking maybe something like Stackoverflow's robot detection, where if it thinks you are a robot, it asks you to verify that you are not. Is there a server-side API in Perl, Java or PHP? There are several solutions. Use a CAPTCHA. SO uses reCAPTCHA as far as I know. Add an extra field to your form and hide it with CSS (display:none). A

Yii CAPTCHA url is broken

 ̄綄美尐妖づ 提交于 2019-12-01 22:03:43
问题 I want to create an AJAX-registration form on my Yii-project. So on every page I have a login-button, which shows a popup if the user isn't authorized. In that popup he can see registration form with email field, password field, and CAPTCHA (default Yii captcha). So, my model for user's registration is User. There is a validation rule: array('code', 'captcha', 'allowEmpty'=>!Yii::app()->user->isGuest), My controller, where all user's actions are, is User (url: site.url/user/) and I added

asp.net mvc and recaptcha action [duplicate]

核能气质少年 提交于 2019-12-01 20:38:39
问题 This question already has answers here : How to implement reCaptcha for ASP.NET MVC? [closed] (8 answers) Closed 5 years ago . When a user submits a form, i'd like to show/redirect to the captcha page intermittently ( based on some custom rules ) and if validated, then execute/commit the first action Is there a way of doing this using the ActionFilter ? or any other way ? 回答1: This is also: http://eglasius.blogspot.com/2010/10/adding-recaptcha-to-aspnet-mvc.html 来源: https://stackoverflow.com

yii captcha not validating properly

无人久伴 提交于 2019-12-01 18:18:51
Im trying to add a captcha using yii to my contact form, but there is some problem with validation. My model class ContactForm extends CFormModel { public $verifyCode; public function rules() { return array( array('verifyCode', 'captcha', 'allowEmpty'=>!CCaptcha::checkRequirements(),'on'=>'captchaRequired'), array('verifyCode', 'safe'), ); } } Code in my controller public function filters() { return array( 'accessControl', ); } public function accessRules() { return array( array( 'allow', //allow all users to perform advertise and index action 'actions' => array('advertise','index', 'captcha')

New Google ReCaptcha not posting/receiving 'g-recaptcha-response'

99封情书 提交于 2019-12-01 18:06:20
I am trying to implement Googles new 'NoCaptcha' on my site. So far I have the widget appearing fine, but it does not verify on my PHP page. My code is set up as such: In <head> <script src='https://www.google.com/recaptcha/api.js'></script> Client Side: <form id="contactform" action="bookingverify.php" method="POST"> <input type="text" name="name" size="41"> <!--OTHER FORM INPUTS--> <div class="g-recaptcha" data-sitekey="mypublickey"></div> </form> Server Side (bookingverify.php) $captcha; if(isset($_POST['g-recaptcha-response'])){ $captcha=$_POST['g-recaptcha-response']; } if(!$captcha){

Enable Captcha after several login failure - How to implement this?

▼魔方 西西 提交于 2019-12-01 18:04:32
I'm working on an auth system with login failure. If the user fails to login, the attempts number in database is incremented and if a defined limit is reached, PHP sets a session captcha variable to true. So when the user (or spam bot) gets the login page again, a captcha form is shown thanks to the session variable But since Spam bots could eventually delete the session cookie and retry, this may be not effective. Should I use a database solution instead ? How would you implement this (with/or without the database) ? Timm Spam bots can get around session restrictions fairly easily, so it

Enable Captcha after several login failure - How to implement this?

我的未来我决定 提交于 2019-12-01 18:03:50
问题 I'm working on an auth system with login failure. If the user fails to login, the attempts number in database is incremented and if a defined limit is reached, PHP sets a session captcha variable to true. So when the user (or spam bot) gets the login page again, a captcha form is shown thanks to the session variable But since Spam bots could eventually delete the session cookie and retry, this may be not effective. Should I use a database solution instead ? How would you implement this (with

yii captcha not validating properly

江枫思渺然 提交于 2019-12-01 17:35:53
问题 Im trying to add a captcha using yii to my contact form, but there is some problem with validation. My model class ContactForm extends CFormModel { public $verifyCode; public function rules() { return array( array('verifyCode', 'captcha', 'allowEmpty'=>!CCaptcha::checkRequirements(),'on'=>'captchaRequired'), array('verifyCode', 'safe'), ); } } Code in my controller public function filters() { return array( 'accessControl', ); } public function accessRules() { return array( array( 'allow', /

New Google ReCaptcha not posting/receiving 'g-recaptcha-response'

核能气质少年 提交于 2019-12-01 16:25:18
问题 I am trying to implement Googles new 'NoCaptcha' on my site. So far I have the widget appearing fine, but it does not verify on my PHP page. My code is set up as such: In <head> <script src='https://www.google.com/recaptcha/api.js'></script> Client Side: <form id="contactform" action="bookingverify.php" method="POST"> <input type="text" name="name" size="41"> <!--OTHER FORM INPUTS--> <div class="g-recaptcha" data-sitekey="mypublickey"></div> </form> Server Side (bookingverify.php) $captcha;

“Could not open socket”

橙三吉。 提交于 2019-12-01 06:02:19
How do I alleviate the "Could not open socket" error that is happening on my site? I have troubleshot that it is CAPTCHA (I'm using reCAPTCHA ). It is only displaying this error on the two pages where I use reCAPTCHA. I have been generating new sets of keys, and sometimes it works and sometimes it does not. For example, it worked on Safari and sometimes not, but on Firefox , and vice versa, and it worked for me and not for one of my partners and vice versa. How can I fix this problem? Could it be that my server is having trouble doing the fsocketopen command? If so, how do I fix that? Could it