Author

Topic: Code to block mail domain ? (Read 302 times)

hero member
Activity: 868
Merit: 500
October 11, 2016, 06:00:40 AM
#6
i think this code was from me when i helpef Gifted but i dont know where i posted it .
But you can do it easy with this funktion Wink


function is_bad_mail($mail) {
      $bad_mails = array("mail.ru","yandex.ru");
      foreach ($bad_isp as $arr) {
         if (preg_match("/".$arr."/i",$mail) == true) {
            return true;
         }
      }
                return false;
}

its psoydocode just tipped here not tested !
if you need help contact me !

kind regards

I sent you a pm I don't know how to implement it within xapo script.
legendary
Activity: 1582
Merit: 1031
October 11, 2016, 05:33:45 AM
#5
i think this code was from me when i helpef Gifted but i dont know where i posted it .
But you can do it easy with this funktion Wink


function is_bad_mail($mail) {
      $bad_mails = array("mail.ru","yandex.ru");
      foreach ($bad_isp as $arr) {
         if (preg_match("/".$arr."/i",$mail) == true) {
            return true;
         }
      }
                return false;
}

its psoydocode just tipped here not tested !
if you need help contact me !

kind regards
full member
Activity: 210
Merit: 100
★YoBit.Net★ 350+ Coins Exchange & Dice
October 11, 2016, 05:00:09 AM
#4
I want a code to block email domain for xapo faucet, for e.g. I don't want to allow mail.ru , yandex.ru emails or other disposable emails. I remember someone shared such code for xapo faucet but in which thread forgot.
If anyone know about that thread please post link here.

Ill go little off topic here and ask you what is wrong with yandex.ru and why do you want to block it?

Yandex.ru might not be among but the op is against disposable emails where people can create in mass number and use it to cheat his website.
legendary
Activity: 1932
Merit: 2272
October 11, 2016, 04:55:19 AM
#3
I want a code to block email domain for xapo faucet, for e.g. I don't want to allow mail.ru , yandex.ru emails or other disposable emails. I remember someone shared such code for xapo faucet but in which thread forgot.
If anyone know about that thread please post link here.

Ill go little off topic here and ask you what is wrong with yandex.ru and why do you want to block it?
full member
Activity: 210
Merit: 100
★YoBit.Net★ 350+ Coins Exchange & Dice
October 11, 2016, 04:17:52 AM
#2
I just checked where i pasted the link you are asking about but can see it however all hope are not lost because you can get someone to do this for you at cheaper price when you check the service section here.
hero member
Activity: 868
Merit: 500
October 10, 2016, 10:29:39 PM
#1
I want a code to block email domain for xapo faucet, for e.g. I don't want to allow mail.ru , yandex.ru emails or other disposable emails. I remember someone shared such code for xapo faucet but in which thread forgot.
If anyone know about that thread please post link here.
Jump to: