Page 1 of 1

Allow Specific Country (For Web) is not working

PostPosted:08 Sep 2018 00:05
by leonardoap
hi, as i told Allow Specific Country (For Web) is not working , becouse i just allow US country and use online proxy from italy or wherever and goes into page without problem :x

Re: Allow Specific Country (For Web) is not working

PostPosted:08 Sep 2018 07:48
by nguyenoanh
This function build based on The GeoIP Module of Nginx.
I have tested it many times and it work very well.

Re: Allow Specific Country (For Web) is not working

PostPosted:08 Sep 2018 10:49
by leonardoap
Aaa it is like apache mod geo!!!! Ok so so I can go to nginx config to edit

Re: Allow Specific Country (For Web) is not working

PostPosted:08 Sep 2018 14:16
by nguyenoanh
leonardoap wrote:
08 Sep 2018 10:49
Aaa it is like apache mod geo!!!! Ok so so I can go to nginx config to edit
yes. Using this function, VPSSIM will config exactly for it.
you can see this config in /etc/nginx/nginx.conf and the vhost of domain you configed.

Re: Allow Specific Country (For Web) is not working

PostPosted:13 Sep 2018 20:40
by leonardoap
could you help with this, on mod_geo i can give access from contry Bolivia, google, bing, yahoo robots and facebook..
Code: Select all
<IfModule mod_geoip.c>
SetEnvIf GEOIP_COUNTRY_CODE BO AllowCountry
SetEnvIfNoCase User-Agent .*stripe.* AllowCountry
SetEnvIfNoCase User-Agent .*google.* AllowCountry
SetEnvIfNoCase User-Agent .*yahoo.* AllowCountry
SetEnvIfNoCase User-Agent .*bing.* AllowCountry
SetEnvIfNoCase User-Agent .*duckduckgo.* AllowCountry
SetEnvIfNoCase User-Agent .*bot.* AllowCountry
SetEnvIfNoCase User-Agent .*ask.* AllowCountry
SetEnvIfNoCase User-Agent .*facebook.* AllowCountry
SetEnvIfNoCase User-Agent (Google|Yahoo|Bing|duckduckgo)bot AllowCountry
Deny from all
Allow from env=AllowCountry
</IfModule>
how can i do it on nginx???

thanks

Re: Allow Specific Country (For Web) is not working

PostPosted:13 Sep 2018 20:49
by nguyenoanh
Hello.
If you want only some search engines visit your website, you can using the function:

VPSSIM menu ==> Secure Server & Website ==> Block Bad Bots Scan Website
=========================================================================
        VPSSIM (4.6.0.3) - Manage VPS/Server By HTTP://VPSSIM.COM
=========================================================================
                         Secure Server & Website
=========================================================================

1) Default User & Password	       9) Protect wp-login.php Wordpress
2) CSF Firewall Manage		      10) Block Exploits, SQL Injections
3) IPtables Firewall Manage	      11) Block Bad Bots Scan Website
4) Linux Malware Detect & ClamAV      12) Run Script In Writable Folder
5) Check & Block IP DOS		      13) Block Specific Country (For Web)
6) Change SSH Port Number	      14) Allow Specific Country (For Web)
7) Protect Directory By Password      15) ON/OFF Login Notification eMail
8) Protect Website By Password	      16) Change Password Root Account
Type in your choice (0-Exit): 11
=========================================================================
How to use: http://go.vpssim.vn/1135
=========================================================================
Use this to config Disabled bad bots (spiders) scan for Website
-------------------------------------------------------------------------
By default, all bots can scan all websites. Using this function to config
-------------------------------------------------------------------------
/block the badbots you do not want it scan your website.
-------------------------------------------------------------------------
If you want to restore config to default, run this function once again
-------------------------------------------------------------------------
the typein the website name and choose DISABLE the config block badbots.
=========================================================================
Add or remove bot, spider at: /etc/nginx/conf/blockbadbots.conf
=========================================================================
You want to view list website on server ? [y/N]
Edit rule on: /etc/nginx/conf/blockbadbots.conf