PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Jacek Wloka   PHP IP Block IP Ranges   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example
Class: PHP IP Block IP Ranges
Check if the current user IP is with a block range
Author: By
Last change:
Date: 11 years ago
Size: 301 bytes
 

Contents

Class file image Download
<?php

include('ip4_blocking_classes.php');

$ip4_blocking_classes = new ip4_blocking_classes();
$ip4_blocking_classes->ip4blockingclasses('5.39.64.0 - 5.39.79.255');

/*/
$ip4_blocking_classes->ip4blockingclasses('0.0.0.0 - '.getenv("REMOTE_ADDR"));
/*/

echo getenv("REMOTE_ADDR");

?>