First, go to the root folder of your website and check for an existing .htaccess file (it will be named .htaccess )
If there is one, download it, open it with notepad and add this to it:
Code:
order allow,deny
deny from 127.0.0
allow from all
This will block any visitor with an address in the 127.0.0.0 to 127.0.0.255 range (just as an example. change it to suit your needs)
After you add that, reupload the file to your root folder.
If you don't have an existing .htaccess file, then simply open up notepad on your PC, paste that into it, save it as .htaccess and upload it to the root folder of your site.
For more information on this, simply google (without quotes): htaccess block ip range
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.