mphp
New member
PHP:
$word1 = "site1.com";
$word2 = "site2.com";
$word3 = "example.com";
$word4 = "bing.com";
$word5 = "google.com";
// WILL PROBABLY BE MORE SITE HERE
if (!empty($referer) and !strpos($referer, $word1) and !strpos($referer, $word2) and !strpos($referer, $word3) and !strpos($referer, $word4) and !strpos($referer, $word5) and !strpos($referer, $word6)) {
// DO SOMETHING HERE
}
In the future I will probably have a lot more sites added to this list...
Is this the shortest way to write this??
.
Last edited by a moderator: