The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages
> PHP Development
|
Tired of fake accounts with hotmail, match name with address help
Discuss Tired of fake accounts with hotmail, match name with address help in the PHP Development forum on Dev Shed. Tired of fake accounts with hotmail, match name with address help PHP Development forum discussing coding practices, tips on PHP, and other PHP-related topics. PHP is an open source scripting language that has taken the web development industry by storm.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

November 16th, 2012, 04:27 AM
|
|
Contributing User
|
|
Join Date: Jun 2003
Posts: 124
Time spent in forums: 8 h 26 m 43 sec
Reputation Power: 10
|
|
|
Tired of fake accounts with hotmail, match name with address help
Hi,
I made a start of this code but i need some help.
We're getting tired of frauds trying to make a buck with fake accounts.
What we want to do is block people using the following sort of method:
Their names are normal, like "John James", with an email like "bigman23454@hotmail..."
These accounts are flagged immediately, but i want to prevent them for becoming as member at all. Nothing good comes of these people.
I have this:
PHP Code:
$fname = "pp";
$lname = "gtr";
$email = "pp123435@hotmail.com";
echo (preg_match("/^([$fname\._-|$lname\._-])*@([hotmail])+([a-zA-Z0-9\._-]+)+$/", $email)==TRUE)?"Good":"Bad";
Tried this line too:
PHP Code:
echo (preg_match("/^([$fname\._-])+([$lname\._-])*@([hotmail])+([a-zA-Z0-9\._-]+)+$/", $email)==TRUE)?"Good":"Bad";
It does not work 100%. It does some, but not right;-)
Please help.
Paul.
|

November 16th, 2012, 04:54 AM
|
 |
pollyanna
|
|
Join Date: Jul 2012
Location: Germany
|
|
|
Hi,
filtering a specific email pattern makes no sense to me, since this will also block legitimate users.
Are those "people" you want to get rid of actual people or bots? Because most bots are pretty stupid and can be detected easily by using hidden fields. I also had a problem with massive fake registrations in my forum and could fight them off completely just by making the standard phpbb registration fields hidden. If a user still fills out the fields, it's obviously a bot. The great thing about this is that legitimate users aren't bothered at all (in contrast to captchas).
|

November 16th, 2012, 06:25 AM
|
|
Contributing User
|
|
Join Date: Jun 2003
Posts: 124
Time spent in forums: 8 h 26 m 43 sec
Reputation Power: 10
|
|
Its actually a precaution for 'real' cheaters i guess. No bots.
We own a cashback program, these people register and find the stores where they can get most money back, then go to that store and try to fake orders. We have already been canned by 4 stores due to these people that tried to cheat their way into getting cashback.
What works for now, is the following:
Quote: if (!(preg_match("/($fname|$lname)/i", $email)==TRUE) && (preg_match("/(\@hotmail)/i", $email)==TRUE))
{
echo "Not OK";
}
else
{
echo "OK";
} |
However i do of course agree with you on all counts, we just have to make it work, somehow.
I do know however that real, honest people use real, normal emailadresses. If the small % of people that use these weird hotmail addresses get halted by this method, i do present them with a nice note explaining why. I am sure they will not be offended.
Any other method is welcome.
|

November 16th, 2012, 06:57 AM
|
|
Contributing User
|
|
Join Date: Jun 2003
Posts: 124
Time spent in forums: 8 h 26 m 43 sec
Reputation Power: 10
|
|
|
What i am wondering though is, where do all these people come from. They outnumber the amount of real members at this time (this week only). Our stats show no referrers so it is hard to pinpoint where they come from. A dead giveaway is the different IP's they use, which we DO keep track of.
|

November 16th, 2012, 06:39 PM
|
 |
pollyanna
|
|
Join Date: Jul 2012
Location: Germany
|
|
|
I'd still try hidden fields, because I can hardly believe that those frauds actually fill out the registration fields by hand. The registration is probably done by bots and only the orders by actual people (if at all).
Apart from that, there's no technical solution for this problem. If those people aren't completely braindead, they'll soon figure out that you have blacklisted hotmail addresses, and they'll simply switch to gmail or whatever.
|

November 17th, 2012, 06:29 AM
|
|
Contributing User
|
|
Join Date: Jun 2003
Posts: 124
Time spent in forums: 8 h 26 m 43 sec
Reputation Power: 10
|
|
Quote: | Originally Posted by Jacques1 I'd still try hidden fields, because I can hardly believe that those frauds actually fill out the registration fields by hand. The registration is probably done by bots and only the orders by actual people (if at all).
Apart from that, there's no technical solution for this problem. If those people aren't completely braindead, they'll soon figure out that you have blacklisted hotmail addresses, and they'll simply switch to gmail or whatever. | They already tried with gmail, mail15, rocketmail. All added to my routine and registrations stopped immediately after that. For now;-)
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|