PDA

View Full Version : No Right Click Show IP Address


Rickard19
02-17-2003, 07:31 AM
Hello,

I was just curious if there was a way you can grab a persons IP address and put it into a No Right Click. I know there is a script that works in Netscape, but I'm looking for a script that works both in Netscape and IE.

Thanks and Any Help would be greatly appriciated

Rich

Spudhead
02-17-2003, 04:43 PM
If you've got ASP or something server-side, it's easy. I dunno any other way.

Rickard19
02-17-2003, 08:40 PM
Hello,

I don't know ASP and wouldn't have a clue how to do it. I'm looking for something java based. It doesn't necessarily have to be a no right click IP Address. It just has to display the visitors IP address. Kinda like a scare thing. Like your IP address is being monitored and logged, any wrong doing would be contact to ISP or something like that.

But that's an interesting thought though. I'll have to read up on learning ASP.

Thanks a bunch

Rich

Beck
02-17-2003, 11:27 PM
You might try BSing the scare by just alerting a warning that you've logged their IP address and have it pop up a random IP address. Most people would never know that wasn't them (I sure dont' have my IP memorized). ALso, you could use cookies to keep your "random" IP's consistent (eg, same user say day goes to your page twice, same IP pops up).

Just thoughts...

beetle
02-17-2003, 11:42 PM
If your server supports SSI you can insert this into your javascript

var ip = "<!--#echo var="REMOTE_ADDR"-->";

Catch is, your HTML files have to be named filename.shtml

bluephoenix
02-18-2003, 05:42 AM
is this any help?

http://www.rgagnon.com/jsdetails/js-0019.html

beetle
02-18-2003, 05:45 AM
I haven't tested it, but I think I've heard that java solution is NS-only.Originally posted by bluephoenix
is this any help?

http://www.rgagnon.com/jsdetails/js-0019.html

Rickard19
02-18-2003, 06:25 AM
Hello,

I tried it in IE and it didn't work, I think Beetle is right and that java solutions only works in NS, but thanks for your help and the link.

Rich

meow
02-18-2003, 06:46 AM
I found this (Java) and it works in everything I tried (IE, Moz, Opera).

http://reglos.de/myaddress/MyAddress.html

Thank you Google. :D