Page 1 of 1

[ASK] How to block certain country

PostPosted:26 Jul 2018 21:27
by vpssim82
Hi vpssim,

Is there a way to block certain country for accessing my server/site?

Like block visitor from russia, etc

Thank you

Re: [ASK] How to block certain country

PostPosted:26 Jul 2018 21:33
by nguyenoanh
yes.
In CSF Firewall Manage, it has a function call Block Countries By CSF
it using CSF Config to block the country.
Everything is auto but it not efftect immediately.
Config and wait that effects. The time effect Fast or slow depends on CSF Firewall, not VPSSIM :(
=========================================================================
                VPSSIM - Manage VPS/Server by VPSSIM.COM
=========================================================================
                         Secure Server & Website
=========================================================================

1) Default User & Password	      7) Protect Directory By Password
2) CSF Firewall Manage		      8) Protect Website By Password
3) IPtables Firewall Manage	      9) Block Exploits, SQL Injections
4) Linux Malware Detect & ClamAV     10) ON/OFF Login Notification eMail
5) Check & Block IP DOS		     11) Change Password Root Account
6) Change SSH Port Number
Type in your choice (0-Exit):
then:
=========================================================================
               VPSSIM - Manage VPS/Server by VPSSIM.COM
=========================================================================
                        CSF Firewall Manage
=========================================================================
           CSF Firewall: installed | Running | Version: 12.04
=========================================================================
How to use: http://go.hostingaz.vn/1125
=========================================================================

1) Block IP (IP Range)		       8) Unblock All Countries
2) Block IP (IP Range) List	       9) Restart (Enable) CSF firewall
3) Unblock IP (IP Range)	      10) Disable CSF firewall
4) Unblock all IP (IP Range)	      11) Remove CSF firewall
5) Add IP (Range) to CSF.Allow	      12) View IP blocked List
6) Remove IP (Range) from CSF.Allow   13) Update CSF Firewall
7) Block Countries By CSF
Type in your choice (0-Exit):7
=========================================================================
How to use: http://go.hostingaz.vn/1129
=========================================================================
Use this function to block countries using the CSF Firewall.
-------------------------------------------------------------------------
You need type in 2 letter Country Codes. Multiple countries can be comma
-------------------------------------------------------------------------
separated with no spaces in between, Example: CN,RU,DE
-------------------------------------------------------------------------
to deny access to the China, Russia, and Germany.
-------------------------------------------------------------------------
View list country codes at: https://vpssim.com/country-codes
=========================================================================
Type in country code [ENTER]:

Re: [ASK] How to block certain country

PostPosted:27 Jul 2018 09:03
by vpssim82
thank you @nguyenoanh

Re: [ASK] How to block certain country

PostPosted:27 Jul 2018 09:04
by nguyenoanh
You're wellcome :)