Jump to content

Recommended Posts

i have a new form online that after the user submits its data

it is then displayed on another page.

problem is last night someone was bored and decided to fill in the

form with "lsjdflkjsdflhsjhdfsdlkh"

the person did this 32 times taking about a total of 45 minutes.

(they even bothered to fill in the required email field with "lksdjflk@ksjflsj.com")

so on the output page there listed 32 times submissions like "skdfhskjdfhlk"

 

anyone have a suggestion as to how i can stop this from happening again?

Link to comment
https://forums.phpfreaks.com/topic/127104-solved-form-problem/
Share on other sites

Couple of ideas from me:

 

1.) You can use CAPTCHA

2.) You can use sleep() to delay entering new info (so it will take a lot longer for that person to do it like that)

3.) You can use IP logging and put delay if a form is submitted twice from same IP ()

4.) You can use domain validation for email adress

 

 

But, there is no good way from preventing a user to enter shit info. You can just slow down entering a lot of shit to DB.

 

Link to comment
https://forums.phpfreaks.com/topic/127104-solved-form-problem/#findComment-657452
Share on other sites

Sure, check for the ip when submitting. Insert into a table the ip of the person that submitted and put a time stamp, when someone is submitting check if the ip is in that table and if N amount of time has passed, let's say 5 minutes. If it hasn't don't accept the data that person is submitting.

 

Or

 

If you must have a valid email, try sending an mail to the e-mail given for confirmation, and only after the user has confirmed he or she is a real person do you then submit the data.

 

Hope this helps :D

Link to comment
https://forums.phpfreaks.com/topic/127104-solved-form-problem/#findComment-657456
Share on other sites

It was likely done by a bot script. What existing measures do you have in place to insure that your form page is actually being used to submit to your form processing code?

 

Using sleep() on the server only slows down the page generation of one instance of the web page. Because web servers are multitasking and create a separate instance for each http request, doing this has no effect except to possibly make legitimate visitors wonder why your web site is so slow to perform an action. Bot scripts don't look and don't care what web pages do. They make http requests to submit data to the form processing page.

Link to comment
https://forums.phpfreaks.com/topic/127104-solved-form-problem/#findComment-657459
Share on other sites

Image captcha's are fairly easy to crack, especially if all the characters are in a nice neat constant line and the noise on the image can be easily filtered out. For example, read this thread (all the characters were the same size/shape/color/contrast/orientation and in a nice neat line) - http://www.phpfreaks.com/forums/index.php/topic,218655.0.html

 

Question/answer captcha's, where there are a fairly large number of different randomly picked questions, with something in each question being random itself (what is x [randomly selected] plus y [randomly selected], type the following word [randomly selected] and replace [a randomly picked character a-z that exists in it] with [a different randomly specified character], type the name of the shape in the [randomly picked position] out of the following shapes [randomly selected]...) are more effective, especially if the random question is output as text on an image that must be decoded before the question can be figured out and answered.

Link to comment
https://forums.phpfreaks.com/topic/127104-solved-form-problem/#findComment-657511
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.