Autorización de IP Código PHP
<?php
if(strncmp("141.190.17", $REMOTE_ADDR, 10) != 0)
{
header("HTTP/1.0 403 Forbidden");
?>
<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd" >
<html>
<head><title>Marketing Department</title></head>
<body>
<h2>403 Forbidden</h2>
<p>You cannot access this page from outside
the Marketing Department.
</body>
</html>
<?
exit;
}
?>
<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd" >
<html>
<head><title>Marketing Department</title></head>
<body>
<h2>Marketing secrets!</h2>
<p>Need new development team - the old one
says <em>No</em> far too often.
</body>
</html>
Real Reindeer