jcadima
8/5/2016 - 12:42 AM

Restrict access to a set of IPs

Restrict access to a set of IPs

<?php

$allowed  = array('73.84.167.130', '108.213.33.52'); 
if( in_array($_SERVER['REMOTE_ADDR'], $allowed) ){ 
  // ...
}