Posted by Unknown On 2:09:00 PM

Blocking a website for a country or city is not an easy task for this first you know the IP address which you want to block. Then after you create a .htaccess text file, no - no this is not any extension for a file it is a name of file it means your text file name is -> .htaccess.txt. Yes you should make this file in notepad, which is available in every system. Then after you write code in your file what I giving below …..

<Files 403.shtml>
order allow,deny
allow from all

deny from
deny from
deny from 1.2.3.

  • Here in this example I mentation three example for blocking IP. “Deny from” means you can deny a range of IP means if you want to deny an IP range you use it here in this exp the IP range is to
  • In the second exp you can deny only one IP and here is the IP is
  • In third exp you can deny a subnet mask of and here are that subnet mask is   deny from 1.2.3.
  • After save this file you have to upload this file on your server in that directory that contains your site.

Now your site is blocked for those IP that you mentation in file.


Kavya Sharma said...

I like your website very much thanks for your share. all the imformation are useful for me,I will come again.Please visit here: Packers And Movers Patna

Riya Jain said...

i must say you had done a tremendous job,I appreciate all your efforts.Thanks alot for your writings......Waiting for a new 1..
Packers And Movers Panna
Packers And Movers Raisen

Rita Sharma said...

I loved this one. It has given me courage to try scarier things. I tend to steer clear of them but not anymore. We are expert in Handling,
Packers And Movers in Lucknow
Packers And Movers Lucknow

Purushotam Saini said...

thanks for the great information

Packers and movers in patna@
Packers and movers in noida@
Packers and movers in dwarka delhi@
Packers and movers in faridabad@

Purushotam Saini said...

Mumbai is the capital city of the Indian state of Maharashtra. It is the most populous city in India. It is one of the most crowded urban regions in the world and the second most populous metropolitan area in India. In Mumbai, many of the peoples come daily to make their life better

Packers and movers in bangalore
Packers and movers in gurgaon
Packers and movers in delhi
Packers and movers in mumbai
Packers and movers in hyderabad
Packers and movers in pune
Packers and movers in chandigarh
Packers and movers in kolkata
Packers and movers in chennai

Faheem said...

Techxinx said...

great, its very useful blog for us,
please visit our site
movers and packers in Bhopal
packers and movers Gandhinagar
expert packers and movers
professional packers
shifting solutions
easy packers and movers