Search
 
SCRIPT & CODE EXAMPLE
 

PHP

IP Authorization php code

<?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>
Comment

PREVIOUS NEXT
Code Example
Php :: htaccess new date timestamp 
Php :: php ErrorException Undefined variable inside array_map 
Php :: php public folder 
Php :: vindecoder.eu php 
Php :: change default route laravel 
Php :: how to import in laravel excel command 
Php :: no routes.php in http folder 
Php :: How I can generate the unique transaction ID in laravel 8 
Php :: check if any values are the same in an array php 
Php :: php url variable xss sanitize 
Php :: mixed content laravel form target 
Php :: laravel_login1 
Php :: PHP Parses a time string according to a specified format 
Php :: laravel 7 requirements 
Php :: wc php get acf fields product category 
Php :: foreach tableau php 
Php :: symfony auto decode json request 
Php :: octobercms mail register 
Php :: try_files $uri $uri/ /index.php?$query_string; 
Php :: PHP - Elegant way of removing values from Associative Arrays based on a key value duplication 
Php :: laravel withwhere 
Php :: pre_get_posts order by title 
Php :: arry to string php 
Php :: php preg match 
Php :: Add current year on WordPress using Shortcode 
Php :: how to enable auto refresh on save laravel 
Php :: how to remove last element from php array 
Php :: php access multidimensional array by string 
Php :: toggle switch php 
Php :: session in laravel 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =