Cee
Chevereto Member
🎯Description of the issue
Prohibition of temporary mailbox registration
▶🚶Reproduction steps
No error syntax is suggested, but it doesn't work.
📃Error log message
Prohibition of temporary mailbox registration
▶🚶Reproduction steps
- I tried changing /app/routes/route.signup.php and adding the following code to disable registration with a specific temporary mailbox, but it doesn't work, is there something wrong with my method? How can I do this?
No error syntax is suggested, but it doesn't work.
📃Error log message
PHP:
$temporary_email = strstr($_POST['email'],'@');
$temporary = ['bccto.me','linshiyouxiang.net','chacuo.net','027168.com','www.bccto.me','8723891.com','3202.com','chaichuang.com','4057.com','oiizz.com','aaamail.online','80600.net','a7996.com','156mail.cn','pincoffee.com','haimai.pro','135mail.cn','137mail.cn','119mail.com','foxmaii.cn','263mali.cn','huaweimali.cn','dawin.com','tomali.cn','1766258.com','bcaoo.com','yopmail.com','disbox.org','tmpmail.net','tmail.ws','tmpmail.org','tmails.net','disbox.net','moakt.co','moakt.ws','bareed.ws','yunser.net','sharklasers.com','guerrillamail.info','grr.la','guerrillamail.biz','guerrillamail.com','guerrillamail.de','guerrillamail.net','guerrillamail.org','guerrillamailblock.com','pokemail.net','spam4.me','idxue.com','tuofs.com','ixaks.com','003m.cn','t.odmail.cn','mylongxin.cn','tempmailbox.cn','maildrop.cc','666email.com','trashmail.com','urhen.com'];
foreach ($temporary as $j){
if($temporary_email === '@'.$j){
$input_errors['email'] = _s('不欢迎临时邮箱');
break;
}
}
Attachments
Last edited by a moderator: