Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent strange email to regiser my site

I have a bit problem with account register on my site

Now, I just see one email account have been register with my site, It is so strange, that email is [email protected], and I don't know for sure how many similar mails are there.

I don't want this email can register with my account, Because I'm afraid with spam mail or Hackers.

How can I prevent from all of it?

like image 870
user1641601 Avatar asked Nov 30 '25 02:11

user1641601


2 Answers

Don't.

It's a valid e-mail address. You shouldn't be blocking it, nor preventing it. Even if you try, you will not be preventing spammers (which is what you are really trying to accomplish).

To actually prevent fake registrations, there are many techniques, from CAPTCHA to simply requiring JavaScript for your signup form to work. None of them are fool-proof... they all can be worked around, but they go a long ways towards helping.

like image 166
Brad Avatar answered Dec 02 '25 14:12

Brad


You could always make registration a two part process.

  1. Register with website using email address
  2. Send email with verification link that activates the account

Depending on how your system is set up, you could then clear all users with unverified email addresses after a week (or whatever time range you desire.)

like image 45
kmatheny Avatar answered Dec 02 '25 15:12

kmatheny