Is there any code for xanga where I can block someones IP address and which part (header, Website stats) do I put it in?
Is there any code for xanga where I can block someones IP address?
I don't know much about Xanga.. But here's a simple way you can block someone's IP address.. Copy the following code and paste in between the HEAD tag....
%26lt;script type="text/javascript"%26gt;
//Enter banned ips, each separated with a comma:
var bannedips=["IP1", "IP2", "IP3"]
var ip = '%26lt;!--#echo var="REMOTE_ADDR"--%26gt;'
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.ya...
}
%26lt;/script%26gt;
---------
Replace IP1, IP2, IP3 with the list of IP address that you wish to block...
If the banned IP happens to visit your site, he will be re-directed to another page.. I have specified Yahoo.com in the code above.... You can change the URL to something else.
Reply:type cssiscool %26amp; google ask him he could help you
Reply:i don't think so
cavities
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment