Block specific IP block from my website in PHP
- by iTayb
I'd like, for example, block every IP from base 89.95 (89.95..).
I don't have .htaccess files on my server, so I'll have to do it with PHP.
if ($_SERVER['REMOTE_ADDR'] == "89.95.25.37") die();
Would block specific IP. How can I block entire IP blocks?
Thank you very much.