Forum Moderators: coopster

Message Too Old, No Replies

detect lan IP

possible?

         

omoutop

7:09 am on Apr 4, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hello
I was wondering if it was possible to detect a computers lan IP address. The reason for this is that a client of mine wants to block access to certain pages, based on the IP of the PC.
He has setup static ip in his computers.
And wants each pc to access only a portion of his website
So, an IP of #*$!.#*$!.#*$!.xx1 will have access to www.example.com/page1.htm, while an IP of #*$!.#*$!.#*$!.xx2 won't.

Is is even possible to detect lan ip?

brotherhood of LAN

7:59 am on Apr 4, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I'm going to guess 'no' for in the general sense, but a search online shows you can access a users mac address (identity of a unique terminal) via javascript after they have altered their security settings of their browser to trust your website. This may be useful for your situation. I would assume that if retrieving a MAC address is possible then an internal IP is also likely.

omoutop

8:36 am on Apr 4, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



From what i have found... mac address detected by javascript/activex component, will show the last router accessed
I will keep looking