| View previous topic :: View next topic |
hex4
Joined: 13 Nov 2007 Posts: 21 Location: Qormi, Malta
|
Posted: Mon Nov 19, 2007 4:41 pm Post subject: Captcha Image |
|
|
|
I'm trying to work with some verification and to do so I'll be implementing a captcha image.
Do you think this type of image will be sufficient to eliminate bots?
 _________________ orlandev.com
Last edited by hex4 on Mon Nov 19, 2007 5:27 pm; edited 1 time in total |
|
| Back to top |
|
|
maldman
Joined: 13 Nov 2007 Posts: 7
|
Posted: Mon Nov 19, 2007 4:52 pm Post subject: |
|
|
|
| I've made OCR readers before and the best way to beat most of the OCR readers out there is to use different scales, transform some of the letters, shew some of the letters. etc etc |
|
| Back to top |
|
|
hex4
Joined: 13 Nov 2007 Posts: 21 Location: Qormi, Malta
|
Posted: Mon Nov 19, 2007 5:31 pm Post subject: |
|
|
|
how about now?
many different colors in background, different colors and different sizes for text.
and readable I guess. _________________ orlandev.com |
|
| Back to top |
|
|
maldman
Joined: 13 Nov 2007 Posts: 7
|
Posted: Mon Nov 19, 2007 6:05 pm Post subject: |
|
|
|
there u go
nice talking to u  |
|
| Back to top |
|
|
hex4
Joined: 13 Nov 2007 Posts: 21 Location: Qormi, Malta
|
Posted: Mon Nov 19, 2007 6:21 pm Post subject: |
|
|
|
cheers mate  _________________ orlandev.com |
|
| Back to top |
|
|
yancho Site Admin
Joined: 13 Nov 2007 Posts: 58 Location: Iklin
|
Posted: Tue Nov 20, 2007 12:35 am Post subject: |
|
|
|
hex, I suggest using also different fonts, that would help even more  _________________
 |
|
| Back to top |
|
|
hex4
Joined: 13 Nov 2007 Posts: 21 Location: Qormi, Malta
|
Posted: Tue Nov 20, 2007 1:20 am Post subject: |
|
|
|
| yancho wrote: | hex, I suggest using also different fonts, that would help even more  |
I can do that too but I think as maldman told me, using a font which is not default with the OS is enough.
I'm quite happy with the result actually. _________________ orlandev.com |
|
| Back to top |
|
|
hex4
Joined: 13 Nov 2007 Posts: 21 Location: Qormi, Malta
|
Posted: Tue Nov 20, 2007 2:30 am Post subject: |
|
|
|
Advancing a little bit in my code I'm trying to click a button and regenerate the image using AJAX. The only problem is that when I click the button, the image is always refreshed and a new image is available BUT not always shows it.
I.e. let's say i had the image with code 1eloWF. If i click the button, the 'new' image remains with the code 1eloWF (the image wasn't actually refreshed on the page) but if I copy the image location and paste it in the URL bar, the new image is displayed.
Why is this? _________________ orlandev.com |
|
| Back to top |
|
|
maldman
Joined: 13 Nov 2007 Posts: 7
|
Posted: Tue Nov 20, 2007 9:00 am Post subject: |
|
|
|
| hex4 wrote: | Advancing a little bit in my code I'm trying to click a button and regenerate the image using AJAX. The only problem is that when I click the button, the image is always refreshed and a new image is available BUT not always shows it.
I.e. let's say i had the image with code 1eloWF. If i click the button, the 'new' image remains with the code 1eloWF (the image wasn't actually refreshed on the page) but if I copy the image location and paste it in the URL bar, the new image is displayed.
Why is this? |
sounds like the image is being stored in the cache.
I cant really help you with this i never actually used ajax. filcas if you are overwriting the image try to make a new image. |
|
| Back to top |
|
|
yancho Site Admin
Joined: 13 Nov 2007 Posts: 58 Location: Iklin
|
Posted: Tue Nov 20, 2007 9:04 am Post subject: |
|
|
|
See if this helps :
| Code: |
<a href="javascript:void(0);" mce_href="javascript:void(0);" onclick="document.images['captcha'].src ='getimage.php'+ '?' + (new Date()).getTime();">Reload Captcha</a>
|
http://freecodesnippet.com/articles/php/making-your-own-reloadable-captcha-using-php/
Thing is he has no working sample so can't quite test it but i guess it should suffice. _________________
 |
|
| Back to top |
|
|
hex4
Joined: 13 Nov 2007 Posts: 21 Location: Qormi, Malta
|
Posted: Tue Nov 20, 2007 4:09 pm Post subject: |
|
|
|
thanks a lot, will try it out
Edit: works like a charm  _________________ orlandev.com |
|
| Back to top |
|
|