Affiliate Programs
 
Search affiliate programs for: 
Affiliate Categories
» Affiliate Networks
» Ad Networks
» 2 Tier Programs
» Pay Per Sale
» Pay Per Lead
» Residual Income
» Datafeeds
» Multi Tier Programs
» Business Opps
» Other Programs

Newsletter
Get newly added affiliate programs by email. Enter your email here:
Article Categories
» Affiliate Marketing
» Business
» Ecommerce
» Hosting
» Marketing
» Sales
» Web Designing
» Webmasters
» SEO & Promotion
» Working At Home
» Other Articles
» Affiliate Glossary


Go Back   AffiliateSeeking Forum > Website Creation, Design & Maintenance > Programming

Programming Get help with creating your scripts/software or help others. Discuss anything relating to programming. Includes PHP, Perl, C++, ColdFusion, etc.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-07-2011, 03:28 PM
Forum-Engine's Avatar
Forum-Engine Forum-Engine is offline
Junior Member
 
Join Date: Aug 2011
Location: Gainesville Florida USA
Posts: 21
Forum-Engine is on a distinguished road
Default Blocking Spam With Javascript

Hi all,

Coder Will Bontrager (willmaster.com) shared this spam busting tip with me, and I thought you might find it useful.

---------------

One of the easiest form spam reduction techniques is to put a URL in the form's action tag that goes to a regular page instead of the form handling script - a real page, not a 404, so spammers don't get notified to manually investigate your code.

Somewhere below the form, JavaScript assigns the correct URL to the action tag.

The form tag needs an id value for the JavaScript to use. Example:

<form id="handle" action="/index.html"> ... </form>

<script type="text/javascript"> document.getElementById("handle").action = "/script.php"; </script>

Spammers' robots seldom parse JavaScript, so their automated submission never reaches the form handler specified by the JavaScript.

Instead, their spam goes poof at the URL hard coded into the form tag.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-09-2011, 08:31 AM
stevemack stevemack is offline
Member
 
Join Date: Aug 2010
Posts: 59
stevemack is on a distinguished road
thanks for sharing and this is another way of blocking spammers manually.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-29-2011, 10:33 AM
jogan jogan is offline
Junior Member
 
Join Date: Nov 2011
Posts: 3
jogan is on a distinguished road
I could not agree more with you mate. Although there are many software and promises from websites to reduce spams, the best way I often feel is to do it ourselves. I have found out that JavaScript method which is putting the URL in the action tag of the form saves time and money to a great extent.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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



All times are GMT +1. The time now is 06:46 AM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.0.0
© 2004-2011 AffiliateSeeking. All rights reserved.