noxit 0 Report post Posted June 19, 2004 This small piece of code will cause a popup box which tells your visitors what their IP address is. This will shock some of your visitors, yet is a useful script especially when wanting to know your IP address to share connections and playing games with others on the net. Place the code within the <HEAD> and </HEAD> of your html document. This script uses server side includes so you may need to use the shtml extension instead of the normal html extension to your webpage, depending on how your server is set up. CODE: <script LANGUAGE="JavaScript"> <!-- Begin // http://www.hypergurl.com/ // This part gets the IP var ip = '<!--#echo var="REMOTE_ADDR"-->'; // This part is for an alert box alert("Your IP address is "+ip); // End --> </script> Thats it ..!!! Share this post Link to post Share on other sites
ravi 0 Report post Posted June 20, 2004 I think we require SSI for the above thing to work. However, if you got PHP enabled ( Like this host ), u can usegetenv("REMOTE_ADDR");Put this small thing anywhere and you will get the IP ADDRESS. However, Sometimes the IP address is not retrivable because of Proxies and *BLEEP*, so you have to use other Envoirnment variables to get the thing out. For the complete PHP code for IP address, I better Post in that section. Share this post Link to post Share on other sites
ultrasmad 0 Report post Posted June 20, 2004 yea if u have php just use remote addr variable, i don't think there is any way for finding out an ip address using only javascript Share this post Link to post Share on other sites
Lurk 0 Report post Posted July 12, 2004 lol, this reminds me of that gay *BLEEP*, Evidence Eliminator. They use scare tactics with your ip and stuff to make you buy their gay $150 software Share this post Link to post Share on other sites
Shackman 0 Report post Posted July 13, 2004 Yeah, those advetising tricks are sick. Don't ever buy stuff from those people. You can try post a black list here if you want. Share this post Link to post Share on other sites
iGuest 3 Report post Posted July 21, 2004 I tried it and it didn't work. Share this post Link to post Share on other sites
musical-palace 0 Report post Posted July 22, 2004 You just need to have java script enabled for that. It's really easy and anyonw can do it. You can do it with php to keep log and a counter of ips that are comuing to your website..Not a big deal...A big deal is overcloacking someone;s computer with a website... Share this post Link to post Share on other sites
groentjuh 0 Report post Posted July 31, 2004 no ip sniffer says my ip right. Share this post Link to post Share on other sites
Shackman 0 Report post Posted August 1, 2004 (edited) Guys, I tried this script but it does not work. There is a pop up saying my IP is:<!--#echo var="REMOTE_ADDR"-->Seems like the script defines the 'ip' as '<!--#echo var="REMOTE_ADDR"-->'From my point of view, it looks like the script has something wrong with it. Anyway, <!-- and --> are comment tags? Now now, am I wrong here or is this script a joke? Edited August 1, 2004 by Shackman (see edit history) Share this post Link to post Share on other sites
twoq 0 Report post Posted August 1, 2004 I tried it and it didn't work. so do i Share this post Link to post Share on other sites
gotenx 0 Report post Posted August 3, 2004 Cool Script.. But it might freak slow people out so be careful... Share this post Link to post Share on other sites
iGuest 3 Report post Posted August 20, 2004 thats a wicked script. hopefully it will freak out those leechers! Share this post Link to post Share on other sites