[php]Banning on exact postalcode
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
Re: [php]Banning on exact postalcode
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. (;
Re: [php]Banning on exact postalcode
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
Re: [php]Banning on exact postalcode
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.
Re: [php]Banning on exact postalcode
Yeah, that was probably through IP banning. Since if it traces the IP, it will go through the ISP and the ISP will direct to the adress.
Re: [php]Banning on exact postalcode
Quote:
Originally Posted by
s-p-n
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 :).
Re: [php]Banning on exact postalcode
Still, there's proxies, remote servers, etc.
Just use a mac ban.
Its the most accurate I can think of for now. O_O
Re: [php]Banning on exact postalcode
yes but as i said all the webproviders have blocked the functions to get mac