.....Block IPs

zpower

Newbie
Joined
Jul 18, 2010
Messages
20
Reaction score
1
Hello ,
Sorry if this isn't the right place
Can anyone please tell me how to block the range of a certain country from my site ?
Thank you in advance
 
It's normally done with software that is on the host or whatever your running (forum/blog/CMS)

Can you give more information on what is on your website? Like Wordpress/PhP-Nuke/Joomla
 
-skills : thank you , my site is a wordpress site
-xfactornos : Thank you very much , I will try this , and I hope it works
 
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
 
thank you crzyflx ,
I noticed that this is what the site (xfactornos) told is doing .
Again thank you all for this help .
 
Back
Top