
|
View Full Version : email verification
tmoore12 10-31-2008, 04:04 PM email verification
Hello, I am looking for some help. On a few of my email account forms on my website I am getting a jurk that will not stop sending me ponografic links everyday and keeps flooding my account.
I would like to know if I can add to my form a email verification that when someone fills out my form they would have to add an email account that they would have to verify by going to their email account and clicking on it to send me the email.
I would like to make sure that that person has a vaild email account.
THanks
Steve_Arm 10-31-2008, 04:14 PM If you do this you will loose 70% of the users who want to send an e-mail.
Do you check the e-mail address? Something like this:
PHP Code:
function validate_email($str)ÂÂ*ÂÂ*ÂÂ*{ÂÂ*ÂÂ*ÂÂ*ÂÂ*ÂÂ*ÂÂ*ÂÂ*ÂÂ*if (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $str)) return false;ÂÂ*ÂÂ*ÂÂ*ÂÂ*ÂÂ*ÂÂ*ÂÂ*ÂÂ*list($usr, $domain) = split('@', $str);ÂÂ*ÂÂ*ÂÂ*ÂÂ*ÂÂ*ÂÂ*ÂÂ*ÂÂ*if (!@checkdnsrr($domain, 'MX')) return false;ÂÂ*ÂÂ*ÂÂ*ÂÂ*ÂÂ*ÂÂ*ÂÂ*ÂÂ*return true;ÂÂ*ÂÂ*ÂÂ*ÂÂ*}
__________________
PHP Code Repository | Worst Wide Web, now PR2
tmoore12 10-31-2008, 04:19 PM What is that and what does it do? What can I do to stop the spaming of my email form?
Last edited by tmoore12 : 10-31-2008 at 04:23 PM.
linux-tech 10-31-2008, 05:28 PM Quote:
Originally Posted by tmoore12
What is that and what does it do? What can I do to stop the spaming of my email form?
That is one way to stop this, it provides email validation (ie: if you don't have email in the proper format, you're not going to successfully submit the form).
Another way to do this is to use Captcha, or recaptcha, both of these are hackable though I'm sure.
Effectively, there is absolutely NO 100% for sure way to stop people from "spamming of your mail form". You could limit the number of posts per ip per hour (to, say 1), using mysql/php/cookies/ip addresses, but that might get a bit confusing to maintain, and even THAT isn't 100% foolproof.
__________________Linux Tech Networks: Reliable Server Administration and Monitoring since 2002VBulletin Development: VBulletin customizations, development, hosting and leased licenses
azizny 10-31-2008, 09:46 PM Spammers are past that point (they use Gmail accounts, to which they pipe and click on all links in that email).
To be effective, use a question system (I am currently working on a verification system for PHP).
Ask them questions like (what is 1 + 1, or what color is a red car, etc..)
Peace,
__________________NEW: What Is Their IP - Anyone's IP a click away.
URL Tracker, Shortener, Blocker, Unblocker, Whois and More.
tmoore12 11-01-2008, 10:14 AM Email Verification
Hey, azizny Thanks
But I am new to this stuff. I am a builder that has a website and trying to keep spammers off my email account. So if you can till me what I can do to stop the spamming I would really appreciated
Thanks
Tmoore
Flumps 11-01-2008, 11:35 AM Quote:
Originally Posted by tmoore12
Hey, azizny Thanks
But I am new to this stuff. I am a builder that has a website and trying to keep spammers off my email account. So if you can till me what I can do to stop the spamming I would really appreciated
Thanks
Tmoore
im confused by that reply...thats what members have been telling you since the first reply?
all the best ways have been mentioned already.
are you after somone to write the code for you is that what your after?
your find plently of ways to do it from tutorials either on here or through a google search.
that question method suggested above sounds good I might have to think about doing that. incase your wondering that can be coded many ways too. such as array etc.
Codebird 11-01-2008, 11:40 AM You can't stop spamming, maybe every developer tries but to no avail... I guess steve's way is a good one, another way is to just send the IP address of the sender
in the script that sends the email:
PHP Code:
$ipAddress=$_SERVER['REMOTE_ADDR'];
then send that variable somewhere in the content of the email...
you'll get the ip of your spammer then u just ban it
__________________Hicham MallahWeb Developer
MichaelMcC 11-01-2008, 11:43 AM azizny has the right approach. I normally just set up a checkbox next to the submit button.
Check here then click Submit.
That way nobody has to type anything.
tmoore12, just cut and paste azizny's post into an email to your webmaster. They'll know what to do.
tmoore12 11-01-2008, 11:49 AM email verification
Flumps
I am not sure what you’re implying. I am just looking for away to stop spammers. I do not need anyone to do it for me just looking for step-by-step on how to do it. Like I sad I am a builder not a programmer. I would not ask you to build a home because I am sure you would not know where to start.
Codebird 11-01-2008, 12:02 PM no one can help you step by step until u show us something of your code or what cms u used to develop your site ... like houses not all contact forms are built in the same way
__________________Hicham MallahWeb Developer
MichaelMcC 11-01-2008, 12:15 PM A good start would be telling everyone your domain name and offending page. If it's a php page it can be simple. If it uses cgi, it's more complex.
|