IP Blocker white listing
I would like that only from one country IP the access is ALLOWED and block all other IP.
Or can I can I manually edit the .htaccess file to achive this effect? What to write there?
Thank you.
-
CSF firewall will achieve this. However, what are you trying to achieve, as blocking all other countries will break email for a start. If you are trying to maybe tighten up access to services, then CPHULK has this feature built in also. cPHulk provides protection from brute force attacks against your web services. 0 -
.htaccess file blocks just the traffic that Apache handles, which is not email, FTP, ... I would like to do this by .htaccess file (some web hosting providers don't allow access to cPHulk for everybody). 0 -
Hi @bcadej This would be a rather intensive allow from directive in the .htaccess. You'd need allow from specific countries IP ranges which means you'd need to know them then deny from ALL Similar to: order deny,allow deny from all allow from0
Please sign in to leave a comment.
Comments
3 comments