This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Add local ip to app_dev.php

  • Loading branch information...
maltehuebner committed Nov 10, 2017
1 parent 6535f0d commit b6bed5b1148af4d74bf601eb796cf5505c7e8f58
Showing with 1 addition and 1 deletion.
  1. +1 −1 web/app_dev.php
View
@@ -12,7 +12,7 @@
// Feel free to remove this, extend it, or make something more sophisticated.
if (isset($_SERVER['HTTP_CLIENT_IP'])
|| isset($_SERVER['HTTP_X_FORWARDED_FOR'])
|| !(in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1']) || php_sapi_name() === 'cli-server')
|| !(in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1', '192.168.33.1']) || php_sapi_name() === 'cli-server')
) {
header('HTTP/1.0 403 Forbidden');
exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');

0 comments on commit b6bed5b

Please sign in to comment.