PDA

View Full Version : Banning Computer, NOT the IP



SuzieQ
03-11-2006, 01:32 PM
Is anyone familar with how to ban a COMPUTER...Im not talking about banning an IP....I mean banning the COMPUTER itself...:cool:

SuzieQ
03-11-2006, 01:34 PM
...I know it can be done, but dont know how its done?...does anyone else?

Evoicecafe.com offers chatroom rentals, which I have one, and in the admin console there is option that allows admin to KICK a person, which bans their computer (*st time kick * hour, 2nd time kick *2 hours, etc)...Ive tested it, it does in fact ban the COMPUTER....

Trying to figure out how its done...anyone know?:cool:

Ezekiel
03-11-2006, 01:36 PM
Is anyone familar with how to ban a COMPUTER...Im not talking about banning an IP....I mean banning the COMPUTER itself...:cool:

Well the ip is the only unique thing identifying the computer that your server would have access to, so you can't just "ban a computer", unless you want to ban the ip. You sould set a cookie on the computer you want to ban, and prevent access if that cookie is set, but cookies can easily be cleared.

Halla
03-13-2006, 12:29 AM
ban it from what?
Im guessing you mean ban it from accessing a website or something.
Anyway-
Unless youre talking about banning a computer from the network you're on you're basiclly out of luck. If you want to ban a particular PC thats on your network I suppose you could ban the mac address with a script.

www.informationleak.com

SyntaXmasteR
03-13-2006, 03:21 PM
These are two methods i think might be of use to you. The first is a basic ban by the host name that the ISP gives to its users. The second is my little tricky way of blocking users. You can use the sock functions to see if the user is behind a proxy and if they have active scripting disabled. If either of these are tru you can block the webpage from being displayed and show a message saying "Active Scripting must be enabled and no proxy servers are allowed" This will ensure you that the information you are getting from each users log is valid.

Ban By Host Name Given By ISP:
http://us*.php.net/gethostbyaddr

Check for Proxy Before Allowing Connection:
http://us*.php.net/fsockopen