How to allow only one country access to domain?

Post Reply
nootkan
Junior Member
Posts: 96
Joined: 26 Aug 2007, 22:40

How to allow only one country access to domain?

Post by nootkan »

I have 4 classifieds websites that are local in nature and I want to block access to all countries except one for all 4 websites. Is this possible with csf without affecting the rest of the server? Ideally, I would like to allow access from only a certain ip cidr ranges but not sure if that is possible with csf either. Any ideas or solutions greatly appreciated.
aniga17
Junior Member
Posts: 2
Joined: 23 Oct 2016, 07:58

Re: How to allow only one country access to domain?

Post by aniga17 »

i think you can do that with htaccess
nootkan
Junior Member
Posts: 96
Joined: 26 Aug 2007, 22:40

Re: How to allow only one country access to domain?

Post by nootkan »

Thanks for the reply. Google says I could do it with htaccess however my research tells me that isn't the best way to do it because of too much of a server load from this method. Maybe there is no way around the server load I was just hoping that it could be done with csf or ?
Post Reply