Saturday, November 12, 2011

postheadericon BLOCK IP


BLOCK IP dengan script dengan JS, 


script type=”text/javascript”


//input the IP list, separated by commas
var bannedips=[”23.23.23.23?, “11.11.11.11?]


var ip = \’\’
var handleips=bannedips.join(”|”)
handleips=new RegExp(handleips, “i”)


if (ip.search(handleips)!=-1){
alert(”Sorry, you are not allowed visiting this site…. Redirecting !”)
// Put your alert here.


window.location.replace(”www.angellica2017.com”)
// Blocked IP will be automatically redirected to www.angellica2017.com


/script

0 comments :

Search

--_Anggota_--

Teman Facebook

Please Your Comment