I know JavaScript alone can't do it. There has to be something SS to do it, which my first post says I do not have access to do any SS. That is why my friend has set this up with his server. I know what my friend is doing with his server and it does not help me with what I am trying to do.
What he is doing is similar to using this:
Code:
<script src="http://embed.ipcatch.com/ip/" type="text/javascript"></script>
You can put this on your web page without having SS, and it will show the viewer their IP address.
And if I do something like:
Code:
<div id="YourIP">
<script src="http://embed.ipcatch.com/ip/" type="text/javascript"></script>
</div>
<script type="text/javascript">
var yourip = document.getElementById('YourIP')
var bannedIp = new Array();
bannedIp[0] = "##.###.###.###"
bannedIp[1] = "##.###.###.###"
window.onload = checkVisit;
function checkVisit() {
if (yourip == bannedIp){
Redirect();
}
}
function Redirect(){
location.replace('http://www.google.com/');
}
</script>
when the person views the page will a "document.getElementById" grab the link (ie < script src="http://embed.ipcatch.com/ip/" type="text/javascript">< /script>) or the IP numbers?
Cause if it grabs the numbers then this should work.
Bookmarks