Jump to content

General IP Banning


wintallo

Recommended Posts

Hey,

First, thanks for reading! Second, I'm looking for a PHP script that bans IP addresses that [u]don't[/u] have the first octet of 69. For example, the script would block the IP address 23.34.21.255, but it wouldn't block the ip address 69.93.147.82. I already know that to get the user's ip address you use the getenv("REMOTE_ADDR") command. I just don't know how to split the IP address up so the script can just test the first octet. Again, thanks for reading!

Joel
Link to comment
https://forums.phpfreaks.com/topic/31830-general-ip-banning/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.