BANNED IP REDIRECTING CODEHello everyone...
The purpose of this code is to prevent users from visiting pages if their ip addresses are banned. Using this code, you can ban IP addresses from visiting your site. It can also be useful for preventing proxy users and VPN users from visiting your site(if you have a good list that contains IP addresses used by VPNs and proxy servers).
I've got two codes, one in which the banned IP addresses are stored in a txt file named list.txt, and another code i which the banned IP addresses are stored in a database name mydb with a table named banned and column named ip.
1. Code in which the banned IP addresses are stored in list.txt file :
127.0.0.1 127.0.0.2 127.0.0.3 127.0.0.4
Please point out mistakes if you find some in my codes..
Please don't forget to give feedback!!