V
V
VMCLOUD2014-08-22 14:20:44
Digital certificates
VMCLOUD, 2014-08-22 14:20:44

Nginx + GeoIP, resolve ip address from a blocked country, how?

Actually the situation.
We present the site, everyone and sundry go to the site, but the target audience is only RU. GeoIP will help us here, nothing complicated!
Suddenly! A client appears, which is located in LU, or DE, whichever is more convenient for you, with a static IP, which needs to be allowed access to this site.
But we remember that only RU addresses are valid for GeoIP, so a client from LU, or DE, is sent to the forest. The client, accordingly, begins to lay bricks to the support of the site, and the client is ordered to allow access.
Actually, the question is clear from the topic, how to allow this client, with a static IP, to get to a site that is closed to him by GeoIP and at the same time leave the entire country of the client in prohibited?!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
G
GavriKos, 2016-07-05
@GavriKos

wordpress writes dofiga where the address is in the database. Look for instructions on moving to another domain and apply it.

D
Damir Rysaev, 2016-07-05
@freepad

Try to change the url
In wp-config.php write:

define('WP_HOME','https://example.com');
define('WP_SITEURL','https://example.com');

https://codex.wordpress.org/Changing_The_Site_URL

R
Rhim, 2014-08-22
@Rhim

Good day.
You can do this:
set $allowed no;
if ($geoip_country_code = RU) {
set $allowed yes;
}
if ($remote_addr = xxx.xxx.xxx.xxx) {
set $allowed yes;
}
if ($allowed = no) {
return 403;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question