captcha

Get image for captcha session

南笙酒味 提交于 2019-12-06 08:19:48
I want to get the current captcha that is displayed on a website. An example of this would be http://top100arena.com/in.asp?id=58978 How would I get the image link of the captcha that is displayed other than right clicking - > open image in new page? You are looking for the div identified by "rechapta_image" : Then extract the src attribute of the img element inside this div. To do this, you can choose for an easy String-operation-based way or use a HTML parsing library like JSoup . Here is an example of such an extract URL: http://www.google.com/recaptcha/api/image?c=03AHJ

one word recaptcha?

我是研究僧i 提交于 2019-12-06 06:42:07
问题 hello i see facebook is using recaptcha, but somehow in their register page, they can show one word of captcha instead of two, and then i notice that repcatcha validate only the first word, and the second word acts as a dummy, the question is can we somehow tell the recaptcha to just show one word ? rather then two ? 回答1: No. But if a computer can't read such a CAPTCHA, how does the system know the correct answer to the puzzle? Here's how: Each new word that cannot be read correctly by OCR is

CodeIgniter CAPTCHA validation

一曲冷凌霜 提交于 2019-12-06 06:37:50
问题 I have created some form for inserting data into database and for checking if the data was sent from human I have used CAPTCHA which is already integrated to CI. This is my controller: $checkrules = array( 'img_path' => realpath(APPPATH . '../upload/checking/img') . '/', 'img_url' => base_url() . 'upload/checking/img/', 'font_path' => realpath(APPPATH . '../upload/checking/font.ttf'), 'img_width' => 150, 'img_height' => 30, 'expiration' => 7200 ); $check = create_captcha($checkrules); $data[

How do I correctly Re-render a Recaptcha in ASP.NET MVC 2 after an AJAX POST

空扰寡人 提交于 2019-12-06 06:22:26
问题 Ok... I've downloaded and implemented this Recaptcha implementation for MVC which uses the ModelState to confirm the validity of the captcha control. It works brilliantly... except when I start to use it in an AJAX Form. In a nutshell, when a div is re-rendered with AJAX, the ReCaptcha that it should contain does not appear, even though the relevant <scripts> are in the source after the partial render. Code Below. using (Ajax.BeginForm("CreateComment", "Blog", new AjaxOptions() { HttpMethod =

Easiest way to integrate captcha's into Symfony2 FOSUserBundle registration?

℡╲_俬逩灬. 提交于 2019-12-06 02:57:54
问题 I'm using Symfony2 and the FOSUserBundle to manage registration and logins. I'd like to add a captcha system. Is there are pre-existing bundle or tutorial on this? Of course, I could try to roll my own using Google re-captcha. In that case, is Google reCaptcha a good choice, or should I use some other API? 回答1: There are indeed a bundles for that, take a look at: CaptchaBundle Or EWZRecaptchaBundle Both got (most likely) all the documentation you need added in the README.md file or extended

drf 图片/语音验证码

▼魔方 西西 提交于 2019-12-05 23:19:36
drf 集成图片/语音验证码 views 集成 生成url_link (后端重定向到link) base64 png (图片数据, 避免二次请求) urls.py path('code_img', views.CodeImageView.as_view(), name='code_img'), serializers.py class CodeImageSerializer(ModelSerializer): id = serializers.IntegerField(label='id', read_only=True) link = serializers.SerializerMethodField(help_text='img url') image_code_data = serializers.SerializerMethodField( help_text='img base64 png') @staticmethod def get_link(obj): return obj.link @staticmethod def get_image_code_data(obj): return obj.image_code_data class Meta: model = CaptchaStore fields = ['id', 'link', 'image_code

reCAPTCHA: why can't I check the same result twice?

北慕城南 提交于 2019-12-05 20:42:07
问题 I mean if I check first clients input and it is OK the second check of the same input is always false... Why is that? I really need ability to check it twice (one for client side validation and second for server side validation) Thanks in advance!!! EDIT Clarifying: If user's input is ok and recaptcha returns true (I do it through ajax to my server which sends request to recaptcha's server) the form is submitting and sends via POST also 2 variables: recaptcha_challenge_field value and

PHP Chinese Captcha

一笑奈何 提交于 2019-12-05 19:43:58
Is there a captcha available for PHP which displays Chinese characters but isn't JavaScript dependent? BotDetect captcha supports Chinese characters since the version 3.0 http://captcha.biz/localizations/chinese-captcha.html A few days ago they released PHP version as well. http://captcha.biz/php-captcha.html It works with JavaScript disabled. take a look at this http://www.phpkode.com/scripts/item/hippo-chinese-cert-code/ hope it helps 来源: https://stackoverflow.com/questions/6042022/php-chinese-captcha

Scrapy & captcha

陌路散爱 提交于 2019-12-05 17:35:34
I use scrapy for submit form in site https://www.barefootstudent.com/jobs (any links into page, etc http://www.barefootstudent.com/los_angeles/jobs/full_time/full_time_nanny_needed_in_venice_217021 ) My scapy bot successfully log in but i can not avoid captcha. For form submit i use scrapy.FormRequest.from_reponse frq = scrapy.FormRequest.from_response(response, formdata={'message': 'itttttttt', 'security': captcha, 'name': 'fx', 'category_id': '2', 'email': 'ololo%40gmail.com', 'item_id': '216640_2', 'location': '18', 'send_message': 'Send%20Message' }, callback=self.afterForm) yield frq i

Opencart, OC 1.5.1.3, captcha error

天涯浪子 提交于 2019-12-05 16:09:35
OC 1.5.1.3, the Captcha image doesn't show on none of these pages: product / review section contact page by accessing this http://www.directmall.co.uk/index.php?route=information/contact/captcha (the direct link which should generate the image) I can't see any errors (Apache logs / error.txt file). I can't see any spaces within the language files - in fact I've redownloaded the entire EN package just to make sure.. I suspect a broken dependency (even if I have GD.. there must be something else..); disabled entirely caching - need assistance! Back in 2009 I've found trails of such errors on