darkcarnival Posted March 6, 2006 Share Posted March 6, 2006 hi,I wish to better improve my banning system on my member script by being able to ban a wildcard of items.like for example i would like to ban anyone who enters a hotmail account or some other free free mail account.i also would like to do this for IP's too.though I dont know how to do a wildcard check like this.any help on this would be welcomed.thanks :) Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted March 6, 2006 Share Posted March 6, 2006 use a regualr expression.so if the users submits a hotmail account in the registration form...if (preg_match('/hotmail/',$_POST['mail'])) { ...do stuff to stop registration...}you can also have...$stop = '/hotmail|';$stop .= 'yahoo|';$stop .= 'gmail/';if (preg_match($stop,$_POST['mail'])) { ...do stuff to stop registration...} Quote Link to comment Share on other sites More sharing options...
darkcarnival Posted March 6, 2006 Author Share Posted March 6, 2006 would that method also work for ips? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.