Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
Valid Email Script?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="sensaze" data-source="post: 399990" data-attributes="member: 73918"><p>So lets say from a security point of view, I don't want my server IP leaking, so other than actually checking that <a href="mailto:hello@email.com">hello@email.com</a> does actually exist all I would have to do is (correct me if im wrong).</p><p></p><p>Create a new php file in my includes folder called emailcheck.php with this script:</p><p>[PHP]function myCheckDNSRR($hostName, $recType = '')</p><p>{</p><p> if(!empty($hostName)) {</p><p> if( $recType == '' ) $recType = "MX";</p><p> exec("nslookup -type=$recType $hostName", $result);</p><p> // check each line to find the one that starts with the host</p><p> // name. If it exists then the function succeeded.</p><p> foreach ($result as $line) {</p><p> if(eregi("^$hostName",$line)) {</p><p> return true;</p><p> }</p><p> }</p><p> // otherwise there was no mail handler for the domain</p><p> return false;</p><p> }</p><p> return false;</p><p>}[/PHP]</p><p></p><p>and then edit say my register.php page at the top with something like:</p><p></p><p>[PHP]<?php</p><p> include_once 'includes/emailcheck.php';</p><p>?>[/PHP]</p><p>[doublepost=1487345637,1487345603][/doublepost]</p><p></p><p>That is already configured correctly, I'm trying to ensure people actually sign up with a valid/working email address.</p></blockquote><p></p>
[QUOTE="sensaze, post: 399990, member: 73918"] So lets say from a security point of view, I don't want my server IP leaking, so other than actually checking that [email]hello@email.com[/email] does actually exist all I would have to do is (correct me if im wrong). Create a new php file in my includes folder called emailcheck.php with this script: [PHP]function myCheckDNSRR($hostName, $recType = '') { if(!empty($hostName)) { if( $recType == '' ) $recType = "MX"; exec("nslookup -type=$recType $hostName", $result); // check each line to find the one that starts with the host // name. If it exists then the function succeeded. foreach ($result as $line) { if(eregi("^$hostName",$line)) { return true; } } // otherwise there was no mail handler for the domain return false; } return false; }[/PHP] and then edit say my register.php page at the top with something like: [PHP]<?php include_once 'includes/emailcheck.php'; ?>[/PHP] [doublepost=1487345637,1487345603][/doublepost] That is already configured correctly, I'm trying to ensure people actually sign up with a valid/working email address. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Valid Email Script?
Top