I think there is no need to block IP from script when the similar task can be done through web control panel easily. For ex. If you are using cPanel control panel, then you will find there is an IP deny manager option to block certain IP or Domain or you can also block the entire range of IP address to prevent them accessing your website.
__________________
"I'm not anti-social; I'm just not user friendly"
|