.....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
 

Skills

Newbie
Joined
Aug 17, 2010
Messages
46
Reaction score
4
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
 

zpower

Newbie
Joined
Jul 18, 2010
Messages
20
Reaction score
1
-skills : thank you , my site is a wordpress site
-xfactornos : Thank you very much , I will try this , and I hope it works
 

crazyflx

Elite Member
Joined
Nov 9, 2009
Messages
1,676
Reaction score
4,873
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
 

zpower

Newbie
Joined
Jul 18, 2010
Messages
20
Reaction score
1
thank you crzyflx ,
I noticed that this is what the site (xfactornos) told is doing .
Again thank you all for this help .
 
Top