Cytat(Vion @ 7.11.2012, 20:18:12 )

mam tam coś takiego
if (!in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1','::1',)) && substr($_SERVER['HTTP_HOST'], -14) != '.home.internal' ) {
header('HTTP/1.0 403 Forbidden'); exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.'); }
if (!in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1','::1', 'xxx.xxx.xxx.xxx')) && substr($_SERVER['HTTP_HOST'], -14) != '.home.internal' ) {
header('HTTP/1.0 403 Forbidden'); exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.'); }
gdzie xxx to Twój adres ip.
http://whatismyipaddress.com/