I am working on a page for a big celebrity auction – and they want to have verbiage showing that the visitor’s Ip address has been captured so that they can prosecute if someone prints down copyrighted pictures. I need to capture it to a text file in my _private folder. Any ideas?
I used this script (scare tactics only) and what keeps coming up on the screen is:
<!–#echo var=”REMOTE_ADDR”–> instead of Your IP Address is: 000.00.000.00 – or whatever….
This is the code I used – can you tell me where I went wrong?
<!– ONE STEP TO INSTALL IP ADDRESS:
1. Copy the coding into the HEAD of your HTML document –>
<!– STEP ONE: Paste this code into the HEAD of your HTML document –>
<SCRIPT LANGUAGE=”JavaScript”>
<!– This script and many more are available free online at –>
<!– The JavaScript Source!! [url]http://javascript.internet.com
<!– Begin
// [url]http://www.kdcgrohl.com
// Depending on your server set-up,
// you may need to use the “.shtml”
// extension [instead of the “html”
// or “htm”] as the script uses Server
// Side Includes. To display in the
// title bar, exclude the
//”<title></title>” code from the page.
// This part gets the IP
var ip = ‘<!–#echo var=”REMOTE_ADDR”–>’;
// This part is for an alert box
alert(“Your IP address is “+ip);
// This part is for the status bar
window.defaultStatus = “Your IP address is “+ip;
// This part is for the title bar
document.write(“<title>Your IP address is “+ip+”</title>”);
// End –>
</script>
<!– Script Size: 1.09 KB –>
</HEAD>