Blocking Web Access to Cron Jobs
if (isset($_SERVER[‘REMOTE_ADDR’])) die(‘Permission denied.’); Note it’s also possibl with a .htaccess file and “deny from all ” in that file
if (isset($_SERVER[‘REMOTE_ADDR’])) die(‘Permission denied.’); Note it’s also possibl with a .htaccess file and “deny from all ” in that file
# htpasswd file is relative to nginx conf location / { auth_basic “Restricted”; auth_basic_user_file conf/htpasswd; }