Do you want to ban people from your website? Of course you can code this in PHP, but the most efficient way to do it, is to put it in the .htaccess file of your host. This way, you can also disable hotlinking of images or other files that are hosted on your website.
Keep your website yours, don't let it be taken over by useless spammers, bots and other annoying people.
Be careful when banning entire ranges of IPs, as you may also be blocking legitimate traffic!
User IP Ban
IP-addresses should have this format:
xxx.xxx.xxx.xxx, where "xxx" is a number between 0 and 255. In the .htaccess files you can specify a certain IP from your site, but you can also block full ranges.
18.104.22.168Block the specific IP address
212.172.49.Blocks all IP's from the range:
69.241.Blocks all IP's from the range:
81.143.4Blocks all IP's from the range:
Tags: ban website design htaccess internet