i need a cookie that lets me see a users IP adress so i can determine wether they are allowed on my site or not because i use a Javascript code that makes it that can block certain IP adresses. please help me.
@age13kidauthorSep 25.2004 — #no what i mean is that i want to beable to see the IP adresses of who is on my website like via E-mail when they enter my page or a status bar. One by one penguins steal my sanity.[/QUOTE]
is what happens when users clik submit it ses things like the user name and then the radio button cliked and the it shows REMOTE_HOST:xx.xxx.xxx.xx (what ever the number is) can i use that to filter who can see my website. but first i need to know what it is for whoever visits my page One by one penguins steal my sanity.[/QUOTE]
@JPnycSep 25.2004 — #Well then you probably can't do what you want. You'll need a database and serverside scripting to search it, which I doubt a free site will support. Once you find the IPs you want to block, you will need to store them somewhere, and then search against that list in the database. If you don't have one, where are you going to store the ones you want blocked?
<i> </i><!-- ONE STEP TO INSTALL IP ADDRESS FILTER 2:
1. Copy the coding into the HEAD of your HTML document -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available free online at --> <!-- The JavaScript Source!! <a href="http://javascript.internet.com">http://javascript.internet.com</a> --> <!-- Original: kdcgrohl --> <!-- Web Site: <a href="http://www.kdcgrohl.com">http://www.kdcgrohl.com</a> -->
<!-- Begin // This JavaScript uses server side includes ("SSI") so this document's name must end in .shtml function ban(){ var ip = '<!--#echo var="REMOTE_ADDR"-->';
//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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!nYour ip address ("+ip+") has been banned!"); history.go(-1); window.location.replace("http://javascript.internet.com/") } } ban(); // End --> </script>
@JPnycSep 25.2004 — #Ok, so everytime you want to ban someone, you have to add their IP to the if statement. Better hope you don't want to ban too many. Besides, it can easily be gotten around by disabling javascript in the browser.
The only way you can get around THAT, is to make a simple HTML page with a message "You must have javascript enabled to view this page", And that page would contain a javascript redirect to your site. Then, disabling JS wouldn't get them to your site. They'd have to have it enabled to get there.
@age13kidauthorSep 25.2004 — #<script type="text/javascript"> var ip = '<!--#echo var="REMOTE_ADDR"-->'; doucument.write("<a href="#" onclick="mailto:[email protected]?subject=ip&message=+ ip +"); </script> i tested that by itself andit doesnt seem to work. do i need to include it into the filter script? or does it take forever to email me.