finpaytech / iphub
VPN/Proxy/Server Detector using IPHub API
Installs: 1 975
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 0
Forks: 0
Open Issues: 0
Requires
- php: ^5.5 || ^7.0
- ext-curl: *
- ext-mbstring: *
This package is not auto-updated.
Last update: 2025-03-30 06:40:08 UTC
README
VPN/Proxy/Server Detector using IPHub API
Installation
composer require finpaytech/iphub
Requirement
PHP 5.5+ with cURL extension enabled
Usage Example
$ip = $_SERVER['REMOTE_ADDR'];
try {
$block = IPHub::isBadIP( $ip, "IP HUB API Key" );
if($block == 1){
die("Request blocked as you appear to be browsing from a VPN/Proxy/Server. Please contact support if you believe this is a mistake.");
}
} catch (\Exception $e) {
$block = false;
}
API Documentation
API documentation can be found here : https://docs.iphub.info/documentation/