最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Javascript for image captcha in html - Stack Overflow

programmeradmin4浏览0评论

I want javascript for Image captcha in html code.
Whcih generates images dynamically and match the given character with image characters. Before entering into the new page it should have to check whether both are same or not
I want to create it in my own, How i can achieve it?

Thanks in Advance,
Praveen J

I want javascript for Image captcha in html code.
Whcih generates images dynamically and match the given character with image characters. Before entering into the new page it should have to check whether both are same or not
I want to create it in my own, How i can achieve it?

Thanks in Advance,
Praveen J

Share Improve this question edited Mar 12, 2009 at 6:18 praveenjayapal asked Mar 12, 2009 at 6:07 praveenjayapalpraveenjayapal 38.6k31 gold badges74 silver badges74 bronze badges 2
  • do you want to do the distortion yourself too? – markus Commented Mar 12, 2009 at 6:35
  • yes, i want to create a captcha by own – praveenjayapal Commented Mar 12, 2009 at 7:10
Add a ment  | 

2 Answers 2

Reset to default 4

Use recaptcha. It's what stackoverflow uses!

I want javascript for Image captcha in html code. Whcih generates images dynamically and match the given character with image characters. Before entering into the new page it should have to check whether both are same

Whilst you could conceivably write some shapes to a <canvas>, SVG or VML element — or even (on non-IE browsers) create an image with a ‘data:’ URL created from pixel values —  there is no point.

Any wholly client-side approach to captcha is already promised because it needs to know the ‘right’ answer to check against. An attacker can just run the JavaScript themselves to find out the answer. Or just turn JavaScript off to avoid the checks.

To do captchas you need server-side scripting, which the attacker does not have access to, to do the work.

发布评论

评论列表(0)

  1. 暂无评论