SibSoft Ltd.
Development Services
software products
 RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
EZYWebhost - Cheap XUpload & XFileSharing 100% campatible hosting

AJAX upload progress bar

File sharing script
Big problems with spambots. Javascript useless?

 
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XUpload
View previous topic :: View next topic  
Author Message
jimrws



Joined: 05 Feb 2008
Posts: 18

PostPosted: Jul 09, 2008 8:20 am    Post subject: Big problems with spambots. Javascript useless? Reply with quote

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
View user's profile Send private message
PilgrimX182



Joined: 22 Mar 2006
Posts: 1055
Location: Undisclosed location

PostPosted: Jul 09, 2008 8:24 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
jimrws



Joined: 05 Feb 2008
Posts: 18

PostPosted: Jul 09, 2008 10:51 am    Post subject: Reply with quote

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
View user's profile Send private message
jimrws



Joined: 05 Feb 2008
Posts: 18

PostPosted: Jul 09, 2008 11:45 am    Post subject: Reply with quote

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
View user's profile Send private message
PilgrimX182



Joined: 22 Mar 2006
Posts: 1055
Location: Undisclosed location

PostPosted: Jul 10, 2008 6:18 am    Post subject: Reply with quote

You can require JS on client side. Bots don't have JS I think Smile
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
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XUpload All times are GMT
Page 1 of 1

 
Jump to:  
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