{"id":4418,"date":"2016-07-21T06:42:22","date_gmt":"2016-07-21T03:42:22","guid":{"rendered":"https:\/\/unihost.com\/help\/ru\/?p=4418"},"modified":"2016-08-07T11:01:07","modified_gmt":"2016-08-07T08:01:07","slug":"htaccess-and-geoip","status":"publish","type":"post","link":"https:\/\/unihost.com\/help\/ru\/htaccess-and-geoip\/","title":{"rendered":".htaccess \u0438 GeoIP"},"content":{"rendered":"<p><span style=\"font-family: Ubuntu, sans-serif;\">\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f GeoIP \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0438\u043b\u0438 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0443 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 IP \u043f\u043e \u0441\u0442\u0440\u0430\u043d\u0430\u043c.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">\u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 GeoIP \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f .htaccess, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0432\u043a\u043b\u044e\u0447\u0435\u043d \u043b\u0438 \u043c\u043e\u0434\u0443\u043b\u044c GeoIP \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c php \u0444\u0430\u0439\u043b \u0441 \u043b\u044e\u0431\u044b\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: info.php, \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0435\u0433\u043e \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u0434:<\/span><\/p>\n<pre>\u00a0&lt;?php phpinfo(); ?&gt;<\/pre>\n<p><!--more--><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\"> \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u044d\u0442\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: <em>https:\/\/unihost.com\/info.php<\/em> \u0438 \u043d\u0430\u0436\u0430\u0442\u044c Ctrl+F \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435. \u0412 \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u0432\u0435\u0441\u0442\u0438 &#8220;geo&#8221; \u0431\u0435\u0437 \u043a\u0430\u0432\u044b\u0447\u0435\u043a. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0435\u0441\u043b\u0438 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0431\u0443\u0434\u0443 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u044b \u0432\u0438\u0434\u0430:<\/span><\/p>\n<pre>_SERVER[\"HTTP_GEOIP_COUNTRY_NAME\"]\r\n_SERVER[\"HTTP_GEOIP_COUNTRY_CODE\"]\r\n_SERVER[\"HTTP_GEOIP_CONTINENT_CODE\"]\r\n_SERVER[\"HTTP_GEOIP_ADDR\"]<\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">\u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442 \u0447\u0442\u043e \u043c\u043e\u0434\u0443\u043b\u044c GeoIP \u0432\u043a\u043b\u044e\u0447\u0435\u043d \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d \u0441\u0430\u0439\u0442. \u0412 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 GeoIP.<\/span><br \/>\n<span style=\"font-family: Ubuntu, sans-serif;\">\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f GeoIP \u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445.<\/span><\/p>\n<h2><strong><span style=\"font-family: Ubuntu, sans-serif;\">\u041f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043e \u0441\u0442\u0440\u0430\u043d\u0430\u043c<\/span><\/strong><\/h2>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">\u0418\u043d\u043e\u0433\u0434\u0430 \u0431\u044b\u0432\u0430\u0435\u0442 \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0441 \u0438\u043d\u043e\u0441\u0442\u0440\u0430\u043d\u043d\u044b\u043c IP \u043d\u0430 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0441\u0430\u0439\u0442\u0430, \u0438 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442. \u0412 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432 .htaccess \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c\u00a0\u043a\u043e\u0434 \u0432\u0438\u0434\u0430:<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif;\">RewriteEngine On<\/span>\r\n<span style=\"font-family: Ubuntu, sans-serif;\">GeoIPEnable On<\/span>\r\n<span style=\"font-family: Ubuntu, sans-serif;\">RewriteCond %{REQUEST_URI} ^\/$ [NC]<\/span>\r\n<span style=\"font-family: Ubuntu, sans-serif;\">RewriteCond %{ENV:GEOIP_COUNTRY_CODE} (RU|UA) [NC]<\/span>\r\n<span style=\"font-family: Ubuntu, sans-serif;\">RewriteRule .* http:\/\/unihost.com\/ru\/ [R=302,L]<\/span>\r\n<span style=\"font-family: Ubuntu, sans-serif;\">RewriteCond %{REQUEST_URI} ^\/$ [NC]<\/span>\r\n<span style=\"font-family: Ubuntu, sans-serif;\">RewriteRule .* http:\/\/unihost.com\/en\/ [R=302,L]<\/span>\r\n<\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">\u0413\u0434\u0435:<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\"><strong>RewriteEngine On<\/strong> &#8211; \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u044f Rewrite\u00a0<\/span><br \/>\n<span style=\"font-family: Ubuntu, sans-serif;\"><strong>GeoIPEnable On<\/strong> &#8211; \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u044f GeoIP<\/span><span style=\"font-family: Ubuntu, sans-serif;\">\u00a0<\/span><br \/>\n<span style=\"font-family: Ubuntu, sans-serif;\"><strong>RewriteCond %{REQUEST_URI} ^\/$ [NC]<\/strong> &#8211;\u00a0\u0435\u0441\u043b\u0438 \u0437\u0430\u0440\u043e\u0441 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u043d\u0430 \u043a\u043e\u0440\u0435\u043d\u044c \u0441\u0430\u0439\u0442\u0430 &#8220;\/&#8221; \u0431\u0435\u0437 \u044f\u0432\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b<\/span><br \/>\n<span style=\"font-family: Ubuntu, sans-serif;\"><strong>RewriteCond %{ENV:GEOIP_COUNTRY_CODE} (RU|UA) [NC]<\/strong> &#8211; \u0438 \u0441\u0442\u0440\u0430\u043d\u043d\u0430 \u0420\u043e\u0441\u0441\u0438\u044f \u0438\u043b\u0438 \u0423\u043a\u0440\u0430\u0438\u043d\u0430<\/span><br \/>\n<span style=\"font-family: Ubuntu, sans-serif;\"><strong>RewriteRule .* http:\/\/unihost.com\/ru\/ [R=302,L]<\/strong> &#8211; \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0441\u0430\u0439\u0442\u0430<\/span><br \/>\n<span style=\"font-family: Ubuntu, sans-serif;\"><strong>RewriteCond %{REQUEST_URI} ^\/$ [NC]<\/strong>\u00a0&#8211;\u00a0\u0435\u0441\u043b\u0438 \u0437\u0430\u0440\u043e\u0441 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u043d\u0430 \u043a\u043e\u0440\u0435\u043d\u044c \u0441\u0430\u0439\u0442\u0430 &#8220;\/&#8221; \u0431\u0435\u0437 \u044f\u0432\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b<\/span><br \/>\n<span style=\"font-family: Ubuntu, sans-serif;\"><strong>RewriteRule .* http:\/\/unihost.com\/en\/ [R=302,L]<\/strong> &#8211; \u043c\u0435\u0442\u043e\u0434\u043e\u043c \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u043d\u0430 \u0430\u043d\u0433\u043b\u043e\u044f\u0437\u044b\u0447\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0441\u0430\u0439\u0442\u0430<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2><span style=\"font-family: Ubuntu, sans-serif;\">\u0411\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0430 \u043f\u043e \u0441\u0442\u0440\u0430\u043d\u0430\u043c<\/span><\/h2>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">\u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u043a\u0430\u043a \u0441 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c, \u0442\u0430\u043a \u0436\u0435 \u0438 \u0441 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u043e\u0439. \u0415\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u0433\u043e \u0438\u043b\u0438 \u0438\u043d\u043e\u0433\u043e \u043f\u043e\u0441\u0435\u0442\u0438\u0442\u0435\u043b\u044f \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0441\u0442\u0440\u0430\u043d\u044b. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 .htaccess \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434:<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif;\">GeoIPEnable On<\/span>\r\n<span style=\"font-family: Ubuntu, sans-serif;\">SetEnvIf GEOIP_COUNTRY_CODE CN BlockCountry<\/span>\r\n<span style=\"font-family: Ubuntu, sans-serif;\">SetEnvIf GEOIP_COUNTRY_CODE UA BlockCountry<\/span>\r\n<span style=\"font-family: Ubuntu, sans-serif;\">Deny from env=BlockCountry<\/span>\r\n<\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">\u0413\u0434\u0435:<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\"><strong>GeoIPEnable On<\/strong> &#8211;\u00a0<span style=\"font-family: Ubuntu, sans-serif;\">\u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u044f GeoIP<\/span><\/span><br \/>\n<span style=\"font-family: Ubuntu, sans-serif;\"><strong>SetEnvIf GEOIP_COUNTRY_CODE CN BlockCountry<\/strong> &#8211; \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043d\u0435\u043a\u043e\u0435\u0433\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0430 (\u0446\u0435\u043f\u043e\u0447\u043a\u0438)\u00a0BlockCountry \u0432 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u043d\u043e\u0441\u0438\u0442\u044c\u0441\u044f \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0447\u0442\u043e \u0441\u0442\u0440\u0430\u043d\u0430 CN &#8211; \u041a\u0438\u0442\u0430\u0439<\/span><br \/>\n<span style=\"font-family: Ubuntu, sans-serif;\"><strong>SetEnvIf GEOIP_COUNTRY_CODE FR\u00a0BlockCountry<\/strong> &#8211; \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0447\u0442\u043e \u0438 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430, \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0440\u0430\u043d\u0430 \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0424\u0440\u0430\u043d\u0446\u0438\u044f<\/span><br \/>\n<span style=\"font-family: Ubuntu, sans-serif;\"><strong>Deny from env=BlockCountry<\/strong> &#8211; \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0440\u0430\u043d \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0432 \u0446\u0435\u043f\u043e\u0447\u043a\u0435\u00a0BlockCountry<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f GeoIP \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0438\u043b\u0438 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0443 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 IP \u043f\u043e \u0441\u0442\u0440\u0430\u043d\u0430\u043c. \u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 GeoIP \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f .htaccess, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0432\u043a\u043b\u044e\u0447\u0435\u043d \u043b\u0438 \u043c\u043e\u0434\u0443\u043b\u044c GeoIP \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c php \u0444\u0430\u0439\u043b \u0441 \u043b\u044e\u0431\u044b\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: info.php, \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0435\u0433\u043e \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u0434: \u00a0&lt;?php phpinfo(); ?&gt;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,109],"tags":[110,351,352,293],"class_list":["post-4418","post","type-post","status-publish","format-standard","hentry","category-general-ru","category---htaccess","tag-htaccess","tag-geoip","tag-rewrite","tag-web-"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>.htaccess \u0438 GeoIP - Unihost.FAQ<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/unihost.com\/help\/ru\/htaccess-and-geoip\/\" \/>\n<meta property=\"og:locale\" content=\"ru_RU\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\".htaccess \u0438 GeoIP - Unihost.FAQ\" \/>\n<meta property=\"og:description\" content=\"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f GeoIP \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0438\u043b\u0438 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0443 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 IP \u043f\u043e \u0441\u0442\u0440\u0430\u043d\u0430\u043c. \u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 GeoIP \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f .htaccess, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0432\u043a\u043b\u044e\u0447\u0435\u043d \u043b\u0438 \u043c\u043e\u0434\u0443\u043b\u044c GeoIP \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c php \u0444\u0430\u0439\u043b \u0441 \u043b\u044e\u0431\u044b\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: info.php, \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0435\u0433\u043e \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u0434: \u00a0&lt;?php phpinfo(); ?&gt;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/unihost.com\/help\/ru\/htaccess-and-geoip\/\" \/>\n<meta property=\"og:site_name\" content=\"Unihost.FAQ\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/unihost\/\" \/>\n<meta property=\"article:published_time\" content=\"2016-07-21T03:42:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-08-07T08:01:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/unihost.com\/help\/minio.php?.\/unihost-logo-alt.png\" \/>\n\t<meta property=\"og:image:width\" content=\"250\" \/>\n\t<meta property=\"og:image:height\" content=\"141\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Unihost Support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@unihost\" \/>\n<meta name=\"twitter:site\" content=\"@unihost\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Unihost Support\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/unihost.com\/help\/ru\/htaccess-and-geoip\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/unihost.com\/help\/ru\/htaccess-and-geoip\/\"},\"author\":{\"name\":\"Unihost Support\",\"@id\":\"https:\/\/unihost.com\/help\/ru\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a\"},\"headline\":\".htaccess \u0438 GeoIP\",\"datePublished\":\"2016-07-21T03:42:22+00:00\",\"dateModified\":\"2016-08-07T08:01:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/unihost.com\/help\/ru\/htaccess-and-geoip\/\"},\"wordCount\":319,\"publisher\":{\"@id\":\"https:\/\/unihost.com\/help\/ru\/#organization\"},\"keywords\":[\".htaccess\",\"GeoIP\",\"Rewrite\",\"web \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442\"],\"articleSection\":[\"01. \u041e\u0431\u0449\u0435\u0435\",\"\u0420\u0435\u0434\u0438\u0440\u0435\u043a\u0442\u044b \u0438 .htaccess\"],\"inLanguage\":\"ru\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/unihost.com\/help\/ru\/htaccess-and-geoip\/\",\"url\":\"https:\/\/unihost.com\/help\/ru\/htaccess-and-geoip\/\",\"name\":\".htaccess \u0438 GeoIP - Unihost.FAQ\",\"isPartOf\":{\"@id\":\"https:\/\/unihost.com\/help\/ru\/#website\"},\"datePublished\":\"2016-07-21T03:42:22+00:00\",\"dateModified\":\"2016-08-07T08:01:07+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/unihost.com\/help\/ru\/htaccess-and-geoip\/#breadcrumb\"},\"inLanguage\":\"ru\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/unihost.com\/help\/ru\/htaccess-and-geoip\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/unihost.com\/help\/ru\/htaccess-and-geoip\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Unihost\",\"item\":\"https:\/\/unihost.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Help\",\"item\":\"https:\/\/unihost.com\/help\/ru\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\".htaccess \u0438 GeoIP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/unihost.com\/help\/ru\/#website\",\"url\":\"https:\/\/unihost.com\/help\/ru\/\",\"name\":\"Unihost.FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/unihost.com\/help\/ru\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/unihost.com\/help\/ru\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ru\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/unihost.com\/help\/ru\/#organization\",\"name\":\"Unihost\",\"alternateName\":\"Unihost\",\"url\":\"https:\/\/unihost.com\/help\/ru\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ru\",\"@id\":\"https:\/\/unihost.com\/help\/ru\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png\",\"contentUrl\":\"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png\",\"width\":300,\"height\":300,\"caption\":\"Unihost\"},\"image\":{\"@id\":\"https:\/\/unihost.com\/help\/ru\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/unihost\/\",\"https:\/\/x.com\/unihost\",\"https:\/\/www.instagram.com\/unihost\/?hl=en\",\"https:\/\/www.linkedin.com\/company\/unihost-com\",\"https:\/\/www.youtube.com\/channel\/UCITKsxMDnslQY8brN3advgw\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/unihost.com\/help\/ru\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a\",\"name\":\"Unihost Support\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ru\",\"@id\":\"https:\/\/unihost.com\/help\/ru\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"caption\":\"Unihost Support\"},\"sameAs\":[\"https:\/\/unihost.com\/\"],\"url\":\"https:\/\/unihost.com\/help\/ru\/author\/support\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":".htaccess \u0438 GeoIP - Unihost.FAQ","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/unihost.com\/help\/ru\/htaccess-and-geoip\/","og_locale":"ru_RU","og_type":"article","og_title":".htaccess \u0438 GeoIP - Unihost.FAQ","og_description":"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f GeoIP \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0438\u043b\u0438 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0443 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 IP \u043f\u043e \u0441\u0442\u0440\u0430\u043d\u0430\u043c. \u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 GeoIP \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f .htaccess, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0432\u043a\u043b\u044e\u0447\u0435\u043d \u043b\u0438 \u043c\u043e\u0434\u0443\u043b\u044c GeoIP \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c php \u0444\u0430\u0439\u043b \u0441 \u043b\u044e\u0431\u044b\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: info.php, \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0435\u0433\u043e \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u0434: \u00a0&lt;?php phpinfo(); ?&gt;","og_url":"https:\/\/unihost.com\/help\/ru\/htaccess-and-geoip\/","og_site_name":"Unihost.FAQ","article_publisher":"https:\/\/www.facebook.com\/unihost\/","article_published_time":"2016-07-21T03:42:22+00:00","article_modified_time":"2016-08-07T08:01:07+00:00","og_image":[{"width":250,"height":141,"url":"https:\/\/unihost.com\/help\/minio.php?.\/unihost-logo-alt.png","type":"image\/png"}],"author":"Unihost Support","twitter_card":"summary_large_image","twitter_creator":"@unihost","twitter_site":"@unihost","twitter_misc":{"Written by":"Unihost Support","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/unihost.com\/help\/ru\/htaccess-and-geoip\/#article","isPartOf":{"@id":"https:\/\/unihost.com\/help\/ru\/htaccess-and-geoip\/"},"author":{"name":"Unihost Support","@id":"https:\/\/unihost.com\/help\/ru\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a"},"headline":".htaccess \u0438 GeoIP","datePublished":"2016-07-21T03:42:22+00:00","dateModified":"2016-08-07T08:01:07+00:00","mainEntityOfPage":{"@id":"https:\/\/unihost.com\/help\/ru\/htaccess-and-geoip\/"},"wordCount":319,"publisher":{"@id":"https:\/\/unihost.com\/help\/ru\/#organization"},"keywords":[".htaccess","GeoIP","Rewrite","web \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442"],"articleSection":["01. \u041e\u0431\u0449\u0435\u0435","\u0420\u0435\u0434\u0438\u0440\u0435\u043a\u0442\u044b \u0438 .htaccess"],"inLanguage":"ru"},{"@type":"WebPage","@id":"https:\/\/unihost.com\/help\/ru\/htaccess-and-geoip\/","url":"https:\/\/unihost.com\/help\/ru\/htaccess-and-geoip\/","name":".htaccess \u0438 GeoIP - Unihost.FAQ","isPartOf":{"@id":"https:\/\/unihost.com\/help\/ru\/#website"},"datePublished":"2016-07-21T03:42:22+00:00","dateModified":"2016-08-07T08:01:07+00:00","breadcrumb":{"@id":"https:\/\/unihost.com\/help\/ru\/htaccess-and-geoip\/#breadcrumb"},"inLanguage":"ru","potentialAction":[{"@type":"ReadAction","target":["https:\/\/unihost.com\/help\/ru\/htaccess-and-geoip\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/unihost.com\/help\/ru\/htaccess-and-geoip\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Unihost","item":"https:\/\/unihost.com\/"},{"@type":"ListItem","position":2,"name":"Help","item":"https:\/\/unihost.com\/help\/ru\/"},{"@type":"ListItem","position":3,"name":".htaccess \u0438 GeoIP"}]},{"@type":"WebSite","@id":"https:\/\/unihost.com\/help\/ru\/#website","url":"https:\/\/unihost.com\/help\/ru\/","name":"Unihost.FAQ","description":"","publisher":{"@id":"https:\/\/unihost.com\/help\/ru\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/unihost.com\/help\/ru\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ru"},{"@type":"Organization","@id":"https:\/\/unihost.com\/help\/ru\/#organization","name":"Unihost","alternateName":"Unihost","url":"https:\/\/unihost.com\/help\/ru\/","logo":{"@type":"ImageObject","inLanguage":"ru","@id":"https:\/\/unihost.com\/help\/ru\/#\/schema\/logo\/image\/","url":"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png","contentUrl":"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png","width":300,"height":300,"caption":"Unihost"},"image":{"@id":"https:\/\/unihost.com\/help\/ru\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/unihost\/","https:\/\/x.com\/unihost","https:\/\/www.instagram.com\/unihost\/?hl=en","https:\/\/www.linkedin.com\/company\/unihost-com","https:\/\/www.youtube.com\/channel\/UCITKsxMDnslQY8brN3advgw"]},{"@type":"Person","@id":"https:\/\/unihost.com\/help\/ru\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a","name":"Unihost Support","image":{"@type":"ImageObject","inLanguage":"ru","@id":"https:\/\/unihost.com\/help\/ru\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","caption":"Unihost Support"},"sameAs":["https:\/\/unihost.com\/"],"url":"https:\/\/unihost.com\/help\/ru\/author\/support\/"}]}},"_links":{"self":[{"href":"https:\/\/unihost.com\/help\/ru\/wp-json\/wp\/v2\/posts\/4418","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unihost.com\/help\/ru\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unihost.com\/help\/ru\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unihost.com\/help\/ru\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/unihost.com\/help\/ru\/wp-json\/wp\/v2\/comments?post=4418"}],"version-history":[{"count":10,"href":"https:\/\/unihost.com\/help\/ru\/wp-json\/wp\/v2\/posts\/4418\/revisions"}],"predecessor-version":[{"id":4439,"href":"https:\/\/unihost.com\/help\/ru\/wp-json\/wp\/v2\/posts\/4418\/revisions\/4439"}],"wp:attachment":[{"href":"https:\/\/unihost.com\/help\/ru\/wp-json\/wp\/v2\/media?parent=4418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unihost.com\/help\/ru\/wp-json\/wp\/v2\/categories?post=4418"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unihost.com\/help\/ru\/wp-json\/wp\/v2\/tags?post=4418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}