Jump to content
xisto Community
Sign in to follow this  
noxit

IP Sniffer HTML Tricks

Recommended Posts

B) 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 ..!!! :P

Share this post


Link to post
Share on other sites

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. B)

Share this post


Link to post
Share on other sites

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

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

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 by Shackman (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.