• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Email addresses

New Here ,
Jan 29, 2008 Jan 29, 2008

Copy link to clipboard

Copied

We have a feedback form which has been getting used by spammers and entering email addresses such as gfdhfgd@hjhgfdh.com. How can I check that the email entered into the form is a valid email address?
TOPICS
Advanced techniques

Views

366

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jan 29, 2008 Jan 29, 2008

Copy link to clipboard

Copied

Quick answer: You can't.

Beyond basic syntax checking, which "gfdhfgd@hjhgfdh.com" would pass, there are tools to check the existence of the domain and the presence of a mail server via DNS. But some spammers have this figured out and will send you "gfdhfgd@msn.com". Due to spammers again, most email servers have email account verification services blocked so the only way to validate an email address on a valid email server is to send a message and wait for a user response.

My solution would be to make spamming a capital offense, but I think I would meet some resistance promoting this line of defense!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 29, 2008 Jan 29, 2008

Copy link to clipboard

Copied

randihue wrote:
> We have a feedback form which has been getting used by spammers and entering
> email addresses such as gfdhfgd@hjhgfdh.com. How can I check that the email
> entered into the form is a valid email address?

as steve says, you can't really but you can make it harder by using captcha or
simply popping up the feedback form via js like ray's blog (that defeats a
significant amount of this kind of goop).

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 30, 2008 Jan 30, 2008

Copy link to clipboard

Copied

LATEST
yeah we also have captcha code implented, but someone is still getting through. I can have this setup so that only university community can access the form, but that closes the form out to visiting profs using our smart classrooms.

I did think about checking the addresses against a db table which already contains email addresses that I manually blocked from our listserv.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation