Captcha Image

 
Post new topic   Reply to topic    PHP User Group Malta Forum Index // PHP Projects
View previous topic :: View next topic  
Author Message
hex4



Joined: 13 Nov 2007
Posts: 21
Location: Qormi, Malta

PostPosted: Mon Nov 19, 2007 4:41 pm    Post subject: Captcha Image Reply with quote
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
View user's profile Send private message Visit poster's website MSN Messenger
maldman



Joined: 13 Nov 2007
Posts: 7

PostPosted: Mon Nov 19, 2007 4:52 pm    Post subject: Reply with quote
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
View user's profile Send private message
hex4



Joined: 13 Nov 2007
Posts: 21
Location: Qormi, Malta

PostPosted: Mon Nov 19, 2007 5:31 pm    Post subject: Reply with quote
how about now?

many different colors in background, different colors and different sizes for text.

and readable I guess.
_________________
orlandev.com
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
maldman



Joined: 13 Nov 2007
Posts: 7

PostPosted: Mon Nov 19, 2007 6:05 pm    Post subject: Reply with quote
there u go

nice talking to u Razz
Back to top
View user's profile Send private message
hex4



Joined: 13 Nov 2007
Posts: 21
Location: Qormi, Malta

PostPosted: Mon Nov 19, 2007 6:21 pm    Post subject: Reply with quote
Rolling Eyes

cheers mate Very Happy
_________________
orlandev.com
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
yancho
Site Admin


Joined: 13 Nov 2007
Posts: 58
Location: Iklin

PostPosted: Tue Nov 20, 2007 12:35 am    Post subject: Reply with quote
hex, I suggest using also different fonts, that would help even more Wink
_________________
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger ICQ Number
hex4



Joined: 13 Nov 2007
Posts: 21
Location: Qormi, Malta

PostPosted: Tue Nov 20, 2007 1:20 am    Post subject: Reply with quote
yancho wrote:
hex, I suggest using also different fonts, that would help even more Wink


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
View user's profile Send private message Visit poster's website MSN Messenger
hex4



Joined: 13 Nov 2007
Posts: 21
Location: Qormi, Malta

PostPosted: Tue Nov 20, 2007 2:30 am    Post subject: Reply with quote
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
View user's profile Send private message Visit poster's website MSN Messenger
maldman



Joined: 13 Nov 2007
Posts: 7

PostPosted: Tue Nov 20, 2007 9:00 am    Post subject: Reply with quote
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
View user's profile Send private message
yancho
Site Admin


Joined: 13 Nov 2007
Posts: 58
Location: Iklin

PostPosted: Tue Nov 20, 2007 9:04 am    Post subject: Reply with quote
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 Smile but i guess it should suffice.
_________________
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger ICQ Number
hex4



Joined: 13 Nov 2007
Posts: 21
Location: Qormi, Malta

PostPosted: Tue Nov 20, 2007 4:09 pm    Post subject: Reply with quote
yancho wrote:
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 Smile but i guess it should suffice.


thanks a lot, will try it out

Edit: works like a charm Very Happy
_________________
orlandev.com
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Post new topic   Reply to topic    PHP User Group Malta Forum Index // PHP Projects All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

alexisRed v1.2 // Theme Created By: Andrew Charron and Web Hosting Bluebook // Icons in Part By: Travis Carden
Boards optimised using the phpBB-SEO mod found at phpbb-seo.com
Boards hosted courtesy of solutions-lab.net
Link Backs : PHPClasses.org - MT Page :: PHPUsergroups.org - MT Page



Powered by phpBB © 2001, 2002 phpBB Group