Block specific IP block from my website in PHP
Posted
by iTayb
on Stack Overflow
See other posts from Stack Overflow
or by iTayb
Published on 2010-05-19T22:26:34Z
Indexed on
2010/05/19
22:30 UTC
Read the original article
Hit count: 356
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.
© Stack Overflow or respective owner