Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

banning unique clients from your webpage (mac-address?)

Status
Not open for further replies.

lukelukeluke

Technical User
Dec 23, 2003
117
CH
Hi there,
Im wasting some time on php scripting.
Actually, i built a little script where i can let only several users enter my page, managed by ip adress (with the const var of the remote adr...). Works so far, but there is a little problem:
If this is my friends ip: 1.2.3.4, then he can enter my page, because i alowed that ip inside. But: he has a brother which is in the same network as he is. I mean, they have a router and both have this ip: so both can log in...
Is there a way to get only a computer alowed to log in, for example get his mac address and then alow by mac?
Is it possible too to get mac adresses from users? For example if some users sign up i store theyr macs and if i want to ban them i ban theyr macs? Is there a way to do that?
Thanks! Greetings, Lucas

Webmaster of knowledgebase for IT knowledge.
 
I think that is impossible to read MAC address from browser request.

You must try with cookies or/and username and password verification.

There's no other way

Webdesign
 
you must also consider that the users that use internet from an ISP which allocates IPs dynamically, one user will always have a different IP so there's no way of knowing who you're banning.

that's why authentication was 'invented'

--------------------------
"two wrongs don't make a right, but three lefts do" - the unknown sage
 
You can't see the MAC address of any computer not on your network segment, whether it's a browser request or otherwise.

And even using authentication, if your buddy's little brother is clever enough, he can snoop the traffic going across his LAN and get the username and password. I doubt it's a real threat, but unless you're using SSL, it's not really secure.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top