CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Need a Custom or Prewritten Perl Program?: I need a program that...:
Creates random security code


New User

Jan 26, 2003, 11:58 AM

Post #1 of 4 (3283 views)
Creates random security code Can't Post

I have a program on my web site that functions like that of Hot Or Not. You post your picture and get rated. To register you must enter your username, password, and email and then click on the activation link sent to your email. Yesterday, a robotic script signed up for my site 1700 times. I had to bring my site down to avoid a DDOS from my server. I am guessing the way to get around this is to embed a module that creates a random security code by pulling pictures of numbers, that you must enter to register. I have seen them before, yet I cannot find any scripts that have it in Perl. Please help, so I can put my site back up ASAP. If there is another solution please advise.


Jan 26, 2003, 4:40 PM

Post #2 of 4 (3277 views)
Re: [ferrisbueller] Creates random security code [In reply to] Can't Post

A simple solution is to set a cookie and look for it before emailing the pass code to make sure the user actually visited your site.

Cookies are easy to fake but without knowing you are performing that check then the spammers attempts will fail.

If they figure it out then you could get your script to generate a random temp file which can't be faked by a spammer as they can't create a file on your server.

New User

Jan 26, 2003, 8:24 PM

Post #3 of 4 (3274 views)
Re: [Paul] Creates random security code [In reply to] Can't Post

That sounds good and everything, but what is the actual programming involved. I am not familiar with Perl so I don not know how to write the script. Could you tell me what to search for on HotScripts or show me how to write it? Thanks.

New User

Mar 9, 2003, 12:01 PM

Post #4 of 4 (3240 views)
Re: [ferrisbueller] Creates random security code [In reply to] Can't Post

See my column on thwarting robots.
Randal L. Schwartz


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives