vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Validate email by MX lookup (https://vborg.vbsupport.ru/showthread.php?t=37141)

fastforward 04-07-2002 10:00 PM

Validate email by MX lookup
 
This simple little hack will verify email addresses during registration and updates of profiles by doing an MX lookup against the domain to ensure somebody is accepting email for it.

It won't tell you if the actual user is valid on the domain, but it will prevent fake domains backing up in your mail spool and slowing everything down.

It requires one new error template and two simple code additions to register.php and member.php. Instructions attached.

snyx 04-07-2002 11:44 PM

nice man, install this asap!

nafae 04-08-2002 12:16 AM

Fantastic, I am soo going to install this :)

Admin 04-08-2002 12:50 PM

Great. :) What happens if the mail server is down though?

fastforward 04-08-2002 01:04 PM

Quote:

Originally posted by FireFly
Great. :) What happens if the mail server is down though?
Most ISP's will have secondary MX and mail server. In fact, even I have a backup mail server.

If they don't have a backup, then you probably wouldn't want them registering with that unreliable address and risk clogging up your forums mail queue. :)

Admin 04-08-2002 01:07 PM

Ok, I was just wondering. :)
I once saw a different script that tries to connect to the server, and make sure the mailbox is really there, but then if the server was done the script will just return false.

fastforward 04-08-2002 01:16 PM

Actually, I just realized that what I wrote was all wrong. I wasn't thinking straight.

The MX record is a DNS issue. It doesn't matter if the mail server is down. The DNS will still show that somebody should be accepting mail for it.

The only time it will fail will be if the DNS server is down or the domain doesn't have anyone accepting mail for it.

Admin 04-08-2002 01:21 PM

Even better. :D The other script I saw though definitely connects to the server, so this one is better.

wooolF[RM] 04-08-2002 01:27 PM

]great hack! :) I'm tired of peeps who give they mail like i_love_vbb@coolhax0r.net or something... I'll install it! :D

Marshalus 04-08-2002 03:41 PM

Very nice!


All times are GMT. The time now is 07:47 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01065 seconds
  • Memory Usage 1,727KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete