[IPAdressFilter]

Mit Hilfe dieses Scripts können Sie bestimmte IP- Adressen daran hindern, Ihre Webseite zu besuchen.
Das Script setzt SSI voraus, Ihr Webserver muss demzufolge Server Side Includes unterstützen und die Dateien als .shtml abgespeichert werden.

[Kompatibilität]

[zwischen <HEAD> und </HEAD>]

<script language="JavaScript">

<!-- Original:  kdcgrohl (kdcgrohl@hotmail.com) -->
<!-- Web Site:  http://www.kdcgrohl.com -->

<!-- Begin
// This JavaScript uses server side includes ("SSI") so  this document's name must end in .shtml
function ban(){
var ip = '<!--#echo var="REMOTE_ADDR"-->';

//add as many ip's below as you wish.
if (ip == "x.x.x.x" || ip == "x.x.x.x") {

//if you wish to change the alert message, do so below.
alert("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Attention!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\nIhre IP Addresse \("+ip+"\) wurde blockiert!");
history.go(-1);
window.location.replace("http://www.nightfire.ch/java/")
}
}
ban();
//  End -->
</script>

[Autor]

kdcgrohl

[Download]

Kopieren Sie bitte den Code

Copyright © 1998- Nightfire Webworker Archiv Script No: 0173