Skip to content

robzlabz/IP-Filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IP Filter

IP Filter adalah class PHP yang digunakan untuk membatasi view / akses dari IP yang telah di daftar

Cara Penggunaan

Pertama 'Include IP.php'

include 'IP.php';

Gunakan fungsi static yang ada

IP::getip(); // return string, ip
IP::blocked(); // return boolean
IP::proxy(); // return boolean

Contoh

Full Blok

if ( IP::blocked())
  die('IP Anda terdaftar pada IP yang di blokir');

Part Blok

if( ! IP::blocked()) : {
  #show main ads
} else { 
  #show other ads
}

Apa datang dari proxy?

if( IP::proxy()) {
  echo 'IP datang dari proxy';
}

Berapa IP saya?

echo IP::getip();

About

Filter IP and Proxy Request

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages