I recently paste the ip ban java script found on this link [url] on my network.
But, the problem is that the script is banning everybody including me.
I was able to unban myself after much search on google & gain access to my network. I re-edited the code by including and specifying the ip of the spammer's in the indicated field. But, after implementing the code on my network, i keep recieving this message " your ip has been ban" and i will be redirected to [url]
How to go about this or is there programming mistake with the script?
I was wondering if I could not put a little protection on my .js files by adding a couple of lines to start the file Something like a try catch I thinking of try top.location or try document.body just to avoid beeing able to put path to file directly in address bar ... is that fesable ?
I have been looking for a solution for a long time. I have embedded a SWF app in html page using SWFObject. Now I need to give the Flash app the address where it is currently embedded, since the same SWF file is embedded in more than one locations! So the Flash app is supposed to pull the right content according to its current position
I'm having a problem with same origin policy protection using JQuery 1.4.4 and the jquery.form.js AJAX plug-in. I have an AJAX contact form which works fine so long as visitors preface URL's they type in with "www". But if they navigate directly to a URL on my site (not using www), the URL resolves OK but the URL doesn't match what I use in my AJAX form. In Chrome, this results in a console error:
The download contains three files:
Protect Content.html lets you generate your own protected content.
Demo.html is a protected document, and as long as it remains unbroken, it's your proof that this software works. You can also use it as a template for your own protected pages.
Demo, with hint.html is another protected document that tells you the password. This is meant to show that the first demo is not a trick or a fake.
I have a simple little code script and I'd like either the onClick function (or the entire code itself, whichever is easiest) to only load once every 24 hours for each IP address. So "220.127.116.113" should only get the effect of this code once every 24 hours regardless if they revisit my site 5 times a day let's say.
I found several approaches that attempt to do this, but they either give me the external (regular) IP address, or they give 127.0.0.1 which doesn't really tell me anything. I need the local network address.
Just an alert saying "your machine's local network IP is 10.0.0.139" .
Code: document.write("<a href='"+location.href+"' onclick="share();">Share With Your Friends</a>");
I want to create a link that a user can click which will create a popup telling the user their ip address. I have:
var ip = new java.net.InetAddress.getLocalHost().toString(); alert("Your IP address is: " + ip.substring(ip.indexOf("/")+1))
but this does not seem to work. It says the ip is 127.0.0.1. Strangely, this piece of code used to work but all of a sudden it doesn't for some unknown reason. Can anyone tell me what's wrong with the above code?