Php Mail Spam Check - Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Webmaster Tech > Web Application/Script Support

WebmasterForums.com is the premier Forum on the internet. Registered Users do not see the above ads.
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 12-16-2011, 07:20 PM   #1 (permalink)
Junior Member
 
Join Date: Nov 2011
Posts: 3
Exclamation Php Mail Spam Check

So i have a small mail form for contact purposes on my webpage and recently somebody spammed it, in which broke one of the terms of use for 000webhost,"mass e-mail". I want to make some sort of spamcheck to make sure that people aren't using it for spamming purposes, and if they do, then it will rout them to a different page telling them that they should not Spam... or something of the sort... any ideas?
Here is my original php.

<?php
$files = $_REQUEST['upload'];
$name = $_REQUEST['Name'];
$email = $_REQUEST['Email'] ;
$subject = "Frabah " . $_REQUEST['Name'] ;
$message = "Name: " . $_REQUEST['Name'] . " " . "\nEmail: " . $_REQUEST['Email'] . " " . "\nusername: " . $_REQUEST['Usr'] . " " . "\nmember: " . $_REQUEST['member'] . " " . "\njob: " . $_REQUEST['job'] . " " . "\nmessage: " . $_REQUEST['Input'] ;

@mail("theepicwebaster@yahoo.com", "$subject", $message, "From:" . $email );
echo "Hello $name Thank you for filling out my mail form<br> An e-mail has" ;
echo "been dispatched to myself and i will reply shortly to your e-mail $email ";
echo "Have a nice day";
?>
blackdogruns is offline   Reply With Quote
Sponsored Links
Advertisement
 
Old 03-20-2012, 11:24 PM   #2 (permalink)
Regular User
 
Join Date: Mar 2012
Posts: 17
Default Re: Php Mail Spam Check

Try reCaptcha google.com/recaptcha
MGParisi is offline   Reply With Quote
Old 03-22-2012, 06:38 AM   #3 (permalink)
Regular User
 
Join Date: Oct 2010
Location: Romania
Posts: 13
Default Re: Php Mail Spam Check

The best option to prevent spam is to have a captcha.

An easier option is to check if the user have javascript enabled. Robots usually don't have.
flamescorpion is offline   Reply With Quote
Reply

Tags
contact us , mail , phpmail , spam , spam check

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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



» Advertisement

» Advertisement

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare

» Advertisement

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 08:19 AM.


Powered by vBulletin® Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
Webmaster Forums
Web Hosting | Chicago Web Hosting | Web Hosting