exit script if not authorized ip

This commit is contained in:
Manuel Raynaud
2013-07-29 15:03:07 +02:00
parent 76a8d24f4b
commit 0a0470a184

View File

@@ -16,6 +16,7 @@ $request = Request::createFromGlobals();
if ( false === in_array($request->getClientIp(), $trustIp)) {
//change request to send to a 404 error page
exit;
}
$thelia = new Thelia("dev", true);