Saturday, November 12, 2011
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
Subscribe to:
Post Comments
(
Atom
)
Pengunjung Ke :
Categories
- Android ( 3 )
- Anti Virus ( 2 )
- Audio n Video ( 3 )
- BBM ( 1 )
- Berita ( 7 )
- Blogging ( 42 )
- Facebook ( 9 )
- Internet ( 3 )
- Kata - kata ( 1 )
- Lenovo_A390 ( 2 )
- Linux ( 2 )
- Make mooney ( 4 )
- Microsoft Office ( 2 )
- sekolah_bahasa indo ( 2 )
- sekolah_IT_c++ ( 9 )
- sekolah_IT_css ( 11 )
- sekolah_IT_Database dan SI ( 2 )
- sekolah_IT_database(SQL) ( 2 )
- sekolah_IT_fisika ( 1 )
- sekolah_IT_html ( 17 )
- sekolah_IT_java ( 2 )
- sekolah_IT_photoshop ( 2 )
- sekolah_IT_php ( 20 )
- sekolah_IT_so/is ( 2 )
- Sekolah_kimia ( 2 )
- Software ( 14 )
- Software_Editing ( 3 )
- Tampilan Dekstop ( 6 )
- Tips n Trik ( 38 )
0 comments :
Post a Comment