Skip to content

arshx86/vuxe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

vuxe

Vuxe is a PHP class designed to detect if a visitor is using a VPN, proxy, or accessing from a country you have blocked.

Features

  • Block VPNs, TORs, Proxies, Abusers, Datacenters
  • Blacklist Countries, Regions
  • Whitelist - Blacklist IP addresses
  • Filter all the bots.

Why?

When you want your site reachable by real people only. A rule sets exists you to desire which actors to block. You can block Custom IPs, Regions and different IP types.

  • VPNs, Proxies and Datacenters
  • Bogon IPs
  • Crawlers - search engine bots
  • Specific country/region

Setting up the client

See demo.php

include 'vuxe.php';
$antibot = new Vuxe($_SERVER); // necessary info will be extracted auto

$antibot->block_tor = true;
$antibot->block_vpn = true;
$antibot->block_bogon = true;
$antibot->block_abuse = true;

$antibot->blacklisted_countries = ["finland", "germany", "estonia", "turkey"];
$antibot->blacklisted_regions = ["europe"];
$antibot->blacklisted_ips = ["45.18.251.25", "28.25.111.58"];

// Execute to check if everything is okay
$result = $antibot->check(); // false|string

// FALSE if check passed, STRING with description if check not passed
if ($result != false) {
    die("\n Access blocked. - reason: $result");
}

Examples

  • Blocking Turkey IPs image

  • Blocking VPNs image

  • Blocked bot user agents (you can extend the list) image

About

Block bots, VPNs, proxies with single PHP class

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages