PHP Classes

PHP IP Block IP Ranges: Check if the current user IP is with a block range

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 274 All time: 7,676 This week: 146Up
Version License PHP version Categories
block-ip-ranges 1GNU Lesser Genera...4.0Networking
Description 

Author

This class can check if the current user IP is with a block range.

It takes an IP address range and checks if if the current user IP address is within that range.

The class will issue an HTTP status error 403 and exits if the user IP address falls inside the block IP range.

Picture of Jacek Wloka
Name: Jacek Wloka <contact>
Classes: 6 packages by
Country: Poland Poland
Age: 37
All time rank: 3708 in Poland Poland
Week rank: 214 Up3 in Poland Poland Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files (2)  
File Role Description
Accessible without login Plain text file example.php Example Example
Plain text file ip4_blocking_classes.php Class Class

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:274
This week:0
All time:7,676
This week:146Up