AlbumPopayan.com Forum
Aug 12, 2017 13:40 pmTopic id: 01120

miltonmaria
A captcha system for this site

I had the ide to implement the captcha system for this site.

While users of this site need to be logged in for several services, some services are anonymous, i.e polls, sometimes guestbooks.

There such a tool can be valuable to prevent abuse


 
Aug 12, 2017 13:42 pmReply: 1

miltonmaria
I will not be installing anything but this can be developed with php if the gd library is on, which is it.

A key function would be the one that generates the image, here a start: http://php.net/manual/en/function.imagejpeg.php


 
Aug 12, 2017 17:04 pmReply: 2

miltonmaria
A solution for the character string generation might be this one: https://stackoverflow.com/questions/5438760/generate-random-5-characters-string

The exact line is this one:

$my_rand_strng = substr(str_shuffle("ABCDEFGHIJKLMNOPQRSTUVWXYZ"), -5);

Good solution


 

Reply