| View previous topic :: View next topic |
| Author |
Message |
jimrws
Joined: 05 Feb 2008 Posts: 18
|
Posted: Jul 09, 2008 8:20 am Post subject: Big problems with spambots. Javascript useless? |
|
|
Hi,
As soon as my website went live with my Xupload forms I've been getting fake forms posted. All required fields are filled out with rubbish spam, and they get through our spam filter as they look like ordinary inquiries apart from the obvious rubbish posted insdie the form.
I've played around with some Javascript code but nothing seems to work, I'm guess the bots are bypassing this and just posting directly to the cgi script.
I also have file uploads as optional in my webforms, so I can't rely on this to stop fake forms.
Is there anything I can add to the backend code or maybe some php I can add to the form, to stop these fake submissions?
I don't really want to use CAPTCHA or anything that involves user intervention, unless it's unavoidable.
Any help would be gratefully recieved.
Thanks. |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 1055 Location: Undisclosed location
|
Posted: Jul 09, 2008 8:24 am Post subject: |
|
|
Hmm...you can require file upload.
Don't you have this code in your upload.cgi?
| Code: | if($#files==-1)
{
&lmsg("ERROR: No files uploaded");
sleep 2;
&DelData($temp_dir);
&xmessage("ERROR: No files uploaded");
} |
PS: Pro version, right? |
|
| Back to top |
|
 |
jimrws
Joined: 05 Feb 2008 Posts: 18
|
Posted: Jul 09, 2008 10:51 am Post subject: |
|
|
As I mentioned above, I need to leave file upload as optional, as it's not mandatory for our users to upload files.
Any more ideas? |
|
| Back to top |
|
 |
jimrws
Joined: 05 Feb 2008 Posts: 18
|
Posted: Jul 09, 2008 11:45 am Post subject: |
|
|
Using a similar method to the file upload check above, is it possible to check other form fields in the cgi?? What code could I use for this?
Maybe in upload.cgi it could check for a hidden field or a timestamp so it knows whether the form was submitted by a human and not a bot?? |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 1055 Location: Undisclosed location
|
Posted: Jul 10, 2008 6:18 am Post subject: |
|
|
You can require JS on client side. Bots don't have JS I think
| Code: | unless($ENV{QUERY_STRING}!~/js_on=1)
{
&lmsg("ERROR: No files uploaded");
sleep 2;
&DelData($temp_dir);
&xmessage("ERROR: No files uploaded");
} |
|
|
| Back to top |
|
 |
|
|
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
|
Powered by phpBB © 2001, 2005 phpBB Group
|