Blocking Countries

Post Reply
WhatNoWebsite
Junior Member
Posts: 3
Joined: 09 Apr 2017, 20:25

Blocking Countries

Post by WhatNoWebsite »

Hi guys

I'm using csf v10.05 to block brute force attempts and it's working well but with one minor issue:

It's also blocking genuine access to the websites.

I'm using the CC_DENY = "country codes here" and I was mistakenly under the impression it would ONLY block WHM or root level access through SSH.

Is there a better solution to what I am doing...? Could I for example whitelist my country and block everything else but NOT block access to the websites...?
Sergio
Junior Member
Posts: 1715
Joined: 12 Dec 2006, 14:56

Re: Blocking Countries

Post by Sergio »

Don't know why you want to do this, but you can do it by taking of port 80 on tcp in/out and add your country to CC_ALLOW and write port 80 in CC_ALLOW_PORT.

Don't recommend this in any way, but is your server.
Post Reply