Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-23-2006, 06:05 AM
WebProWorld New Member
 

Join Date: Sep 2005
Location: Oman
Posts: 4
cooldude750 RepRank 0
Default Preventing spammers adding to my guest book?

Dear Web Professional,

I have a guest book in my web site built with ASP.

From time to time spammers add lot's of guest book record to our web site.

It seems that like the are running a script that adds many records to my SQL Server Database.

How can I make sure that the web site visitor had clicked the submit button instead running a script?

Do you have any idea of fixing this problem?
Reply With Quote
  #2 (permalink)  
Old 03-23-2006, 01:12 PM
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: Toronto, Canada
Posts: 2,193
cyanide RepRank 0
Default

What about getting rid of the guestbook?
I know this doesn't answer your question, but guestbooks are really outdated and don't really add anything credible or professional to a website
__________________
|
Web Hosting Guru
| Need Help For Your Forum?
Reply With Quote
  #3 (permalink)  
Old 01-25-2008, 12:41 AM
WebProWorld Veteran
 

Join Date: Jul 2003
Location: Bristol, UK
Posts: 965
carbonize RepRank 0
Default Re: Preventing spammers adding to my guest book?

Again I hate to bring up an old thread but you're wrong their Cyanide. The amount of people who have downloaded and use my own guestbook script in the three years I have been working on it shows that guestbooks are far from outdated.
__________________
Carbonize
Reply With Quote
  #4 (permalink)  
Old 01-25-2008, 02:16 AM
WebProWorld Member
 

Join Date: Jan 2008
Posts: 25
MursPlace RepRank 1
Default Re: Preventing spammers adding to my guest book?

Quote:
Originally Posted by cooldude750 View Post
How can I make sure that the web site visitor had clicked the submit button instead running a script?

Do you have any idea of fixing this problem?
We have many ways of stopping scripts.

1. CAPTCHA (those funky little hard to read characters.) (Search CAPTCHA ASP Classic get the ones that are distorted) Depending on your ASP knowledge pick something simple that you can work. Then change only if the scripts seem to be entering again.

2. Flood control: Session Time work ok limited rapid reposts. But after the session drop they are back sometimes. Not what I would do but it's a quick easy fix while you're making your morning coffee.
Search Flood control Sessions Classic ASP. But we all know 20 minutes they are back.

3. If you really think it's script and not a script kiddies then Check to see if it's human.
Simple code search for isHuman ASP Classic.

4. Along the same lines as isHuman you can just place a cookie and be done with it after one upload. If no cookie Response.Redirect("SendThemHome.Asp") or to a friendly page explaining cookies are needed. If you use Cookies be nice with what you do. SHA1 anything you place on their computer and don't push it past 30 days.

5. My favorite is IP to Post. New SQL table IPCheck Float 8 NULL.
When your guest signs your book record the IP (converted format Less Dot) Then you can stop repeated posts on a single connection.

Search for IPConvert( ASP Classic Modify things so you can.. work with it. Make it easy on yourself. Don't over do things.

I'm sure you'll find many other things once you start looking. CAPTCHA seems to be the most popular but I personally like cookies and IP's. Without either I don't think they are looking to do business anyway.

As for your question about Clicking the Submit button that would be a java script or something which I don't do but I'm sure some javascript ( onsubmit(CheckThis) ) or OnClick(CheckThis) type of event handler function would help.

I don't know what level you are at but with all this you can ASP fix it instead of Java fixing it.
I bet a simple CAPTCHA will do the trick and if not even a little.


Have fun!

Last edited by MursPlace : 01-25-2008 at 02:31 AM.
Reply With Quote
  #5 (permalink)  
Old 02-18-2008, 04:26 PM
WebProWorld New Member
 

Join Date: Jul 2007
Posts: 12
globaljobstrading RepRank 1
Default Re: Preventing spammers adding to my guest book?

Also, another option that you can use is to create a hidden field named like "last_name", and when the page is postedback to the server you check if that field has any values. If it does, that post came for sure from a boot, since a human will not be able to see you hidden field.

Hide the field using a CSS from an external file, not with codes inside the page.

This is a simple trick, but it works 99.99% of the time.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0