Free php scripts.
scripturi pentru webmasteri - free web tools - copie si lipeste scripts pentru situl tau sute de scripturi Daca vrei sa ai acces la baza de date trebuie sa te inregistrezi. Succes. Omae
Lista Forumurilor Pe Tematici
Free php scripts. | Reguli | Inregistrare | Login

POZE FREE PHP SCRIPTS.

Nu sunteti logat.
Nou pe simpatie:
BrianaS pe Simpatie.ro
Femeie
23 ani
Bucuresti
cauta Barbat
26 - 57 ani
Free php scripts. / ::.SCRIPTURI COPY&PASTE- AVATARE / Block IP address Moderat de SIGN, daniel, kayisATG-, ozzykris, tibilica
Autor
Mesaj Pagini: 1
omaebazooka
Administrator

Inregistrat: acum 18 ani
Postari: 1105
descriere:
Use this script to block certain IPs from your webpage, by redirecting them to another site. Note that your web server must have SSI enabled (most Linux servers do), with the page using the correct extension (ie: .shtml) in order for this script to work. Furthermore, since this script relies on JavaScript to block the user (by redirecting the person to another site), if he/she disables JavaScript in the browser, the script will become futile.

Just insert the below script to the HEAD section of your page, and enter your list of IPs to block:




<script type="text/javascript">

// Block IP address script- )
// For this and over 400+ free scripts,
// This notice must stay intact for use.

//Enter list of banned ips, each separated with a comma:
var bannedips=["23.23.23.23", "11.11.11.11"]

var ip = '<!--#echo var="REMOTE_ADDR"-->'

var handleips=bannedips.join("|")
handleips=new RegExp(handleips, "i")

if (ip.search(handleips)!=-1){
alert("Your IP has been banned from this site. Redirecting...")
window.location.replace("http://www.google.com")
}

</script>


_______________________________________
"Living mistery"        "RoTop69"                  "Producator vinuri nobile" - Paunesti,Vrancea, mail : info-at-cramanobless.ro Intra in lumea EREPUBLIK

pus acum 18 ani
   
Pagini: 1  

Mergi la