Limitati accesul unui IP la site cu ajutorul unui.. JS !
Last Updated: Mar 24 2002 08:32, Started by
Courage
, Mar 07 2002 14:59
·
0

#1
Posted 07 March 2002 - 14:59

OK, nu este nevoie sa aveti suport de scripting pe site (CGI, PHP etc) ca sa puteti bana pe cineva :D, insa trebuie sa aveti suport SSI, iar pagina trebuie sa aiba terminatia .shtml !!!
In ... puneti urmatorul cod: <script LANGUAGE="javascript"> //visit [url="http://www.softnews.ro/forum"]http://www.softnews.ro/forum[/url] - WebDesign Area to find more JS Goodies // This javascript uses server side includes ("SSI") so this document's name must end in .shtml '; //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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!n our ip address ("+ip+") has been banned!"); history.go(-1); window.location.replace("http://www.softnews.ro/") } } ban(); // End --> </script> |
Anunturi
Bun venit pe Forumul Softpedia!
▶ 0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users