Connecting Tech Pros Worldwide Help | Site Map

Check IMG

ldHH
Guest
 
Posts: n/a
#1: Aug 17 '06
Hi all,
Some web sites (for example mySpace) had in the registration form an image
with alfanumeric chars... used to check the submit
Could you say me ... how can I realize this ??
Or could you give me some link where I can read this ??
Thanks in advance.
//HH
Laurent Bugnion
Guest
 
Posts: n/a
#2: Aug 17 '06

re: Check IMG


Hi,

ldHH wrote:
Quote:
Hi all,
Some web sites (for example mySpace) had in the registration form an image
with alfanumeric chars... used to check the submit
Could you say me ... how can I realize this ??
Or could you give me some link where I can read this ??
Thanks in advance.
//HH
It's fairly easy. Put all these images in a folder. The image name
should carry the letters/digits sequence (for example, if the image
displays abc123, the image name could be abc123.gif) Then use
server-side code to randomly select one image from this folder. Save the
image name in a session variable. When the user sends the request,
compare what he entered to the variable saved in the session.

Note that these images have a huge inconvenient: They make pages
unaccessible for blind people. Usually web browsers for "visually
impaired" people use the title of the alt attribute to read the image's
description out loud, but obviously you cannot use this in your rendered
HTML code. So you need to provide your users with an alternative solution.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
mc
Guest
 
Posts: n/a
#3: Aug 18 '06

re: Check IMG


visit here (http://www.codeproject.com/aspnet/CaptchaImage.asp) for more
info on how to dynamically create such images. It's not the most complex
of Captcha algorithms but it seems to keep the bots out on my site.

For an example of it in my application visit
http://www.mikecaddy.co.uk/reds/LogComment.aspx

Regards


mc

Laurent Bugnion wrote:
Quote:
Hi,
>
ldHH wrote:
>
Quote:
>Hi all,
>Some web sites (for example mySpace) had in the registration form an
>image with alfanumeric chars... used to check the submit
>Could you say me ... how can I realize this ??
>Or could you give me some link where I can read this ??
>Thanks in advance.
>//HH
>
>
It's fairly easy. Put all these images in a folder. The image name
should carry the letters/digits sequence (for example, if the image
displays abc123, the image name could be abc123.gif) Then use
server-side code to randomly select one image from this folder. Save the
image name in a session variable. When the user sends the request,
compare what he entered to the variable saved in the session.
>
Note that these images have a huge inconvenient: They make pages
unaccessible for blind people. Usually web browsers for "visually
impaired" people use the title of the alt attribute to read the image's
description out loud, but obviously you cannot use this in your rendered
HTML code. So you need to provide your users with an alternative solution.
>
HTH,
Laurent
ldHH
Guest
 
Posts: n/a
#4: Aug 18 '06

re: Check IMG



Hi all,
Really thanks for your help



"mc" wrote:
Quote:
visit here (http://www.codeproject.com/aspnet/CaptchaImage.asp) for more
info on how to dynamically create such images. It's not the most complex
of Captcha algorithms but it seems to keep the bots out on my site.
>
For an example of it in my application visit
http://www.mikecaddy.co.uk/reds/LogComment.aspx
>
Regards
>
>
mc
>
Laurent Bugnion wrote:
Quote:
Hi,

ldHH wrote:
Quote:
Hi all,
Some web sites (for example mySpace) had in the registration form an
image with alfanumeric chars... used to check the submit
Could you say me ... how can I realize this ??
Or could you give me some link where I can read this ??
Thanks in advance.
//HH

It's fairly easy. Put all these images in a folder. The image name
should carry the letters/digits sequence (for example, if the image
displays abc123, the image name could be abc123.gif) Then use
server-side code to randomly select one image from this folder. Save the
image name in a session variable. When the user sends the request,
compare what he entered to the variable saved in the session.

Note that these images have a huge inconvenient: They make pages
unaccessible for blind people. Usually web browsers for "visually
impaired" people use the title of the alt attribute to read the image's
description out loud, but obviously you cannot use this in your rendered
HTML code. So you need to provide your users with an alternative solution.

HTH,
Laurent
>
Closed Thread