Jump to content

[SOLVED] Confirm e-mail exists on user registration


webref.eu

Recommended Posts

what you could do.. is just on register.. put into the database table..

 

md5(rand(0,55)."{$password}{$username}");

 

 

then mail that string to the user in a GET variable in the url like

 

http://site.com/auth.php?authcode=76298389a98nc9001208723

 

then when they click it

 

have a field in the database

 

`authenticated`

 

then update the row which authcode equals the authcode specified

 

UPDATE `members` SET `authenticated`='TRUE' WHERE `authcode` = '{$_GET['authcode']}'

Link to comment
Share on other sites

User interaction is the most definite to checking whether an email exists and is valid.  But some other things you could do...

 

1) Use regex to check if it's a valid format.

2) Read this article.  I haven't tried it but it looks like it contains code to see if the user has a valid email address.

Link to comment
Share on other sites

User interaction is the most definite to checking whether an email exists and is valid.  But some other things you could do...

 

1) Use regex to check if it's a valid format.

2) Read this article.  I haven't tried it but it looks like it contains code to see if the user has a valid email address.

 

The method presented in the article is shaky at best, in that a lot of bogus registrations are still going to pass on through.  I find it a bit humorous that two of the three bogus emails he mentions, donald@duck.com and emailthis@hahaha.com, would pass the test he wrote.  So 33% of the time, it works every time. ;)

Link to comment
Share on other sites

User interaction is the most definite to checking whether an email exists and is valid.  But some other things you could do...

 

1) Use regex to check if it's a valid format.

2) Read this article.  I haven't tried it but it looks like it contains code to see if the user has a valid email address.

 

The method presented in the article is shaky at best, in that a lot of bogus registrations are still going to pass on through.  I find it a bit humorous that two of the three bogus emails he mentions, donald@duck.com and emailthis@hahaha.com, would pass the test he wrote.  So 33% of the time, it works every time. ;)

 

I was a bit lazy with the link as a mentioned I have not tried it.  It came up top 10 on Google so I thought it may be good.  It was primarily supposed to give you more so an idea rather than a solution but w/e.  I do strongly suggest that you use multiple techniques to filter out the most emails, there's almost always going to be a couple that squeeze by but there's nothing you can really do.

 

As bluesoul said:

 

So 33% of the time, it works every time. ;)

 

Words from a statistical genius ;D

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.