[php]Banning on exact postalcode

Junior Spellweaver
Joined
Mar 30, 2007
Messages
101
Reaction score
0
Hello,

I tried to find out how to ban people via php.
this is what i tried:
1. IP
This is not verry accurate becouse if you release your modem from the internet and stick the cable back in you will have another ip.

2. MAC
This is verry verry accurate BUT most of the hosters have disabled this in connection to the privacy law or something

and now i know that you can see where someone is from by postal code BUT i dont know how to get it in php

Could some1 help me?

thx in adventage
 
You could try banning the whole IP range.
Example:
ISPs will have a specific ip range set for every city/settlement.
So, if you get the IP of the person you want to ban and then just ban the first 3 numbers.
BAN 123.123.43.*
This is not valid PHP code though but you could use this to accomplish what you are going for. (;
 
thats not accurate enough becouse some other ppl in the town that come to my site would be banned to if i do that

edit: i one was on a website that could pinpoint my adress and could ban 1 address but i cant find it anymore
 
Last edited:
Banning by IP is stupid. It's not accurate, multiple users can share the same IP without even knowing it, and it can easily be changed in a variety of ways.

In my opinion you shouldn't ban anything based on the users computer. I'd just disable their account, their email address. If what they're doing is causing harm to your site, fix those features. Don't waste your time coding things that aren't going to fix a broken site. You shouldn't have any functions that a normal user can utilize and ruin your site.
 
Banning by IP is stupid. It's not accurate, multiple users can share the same IP without even knowing it, and it can easily be changed in a variety of ways.

In my opinion you shouldn't ban anything based on the users computer. I'd just disable their account, their email address. If what they're doing is causing harm to your site, fix those features. Don't waste your time coding things that aren't going to fix a broken site. You shouldn't have any functions that a normal user can utilize and ruin your site.

Banning by IP is useful, though, in the case of a temporary ban (such as user at IP X failed to login 5 times in a row within Y time period). They stop floods which aren't really .. "fixable" in code, it's just an abuse :).
 
Back