{"id":56709,"date":"2023-09-11T15:47:16","date_gmt":"2023-09-11T12:47:16","guid":{"rendered":"https:\/\/tuthost.ua\/faq\/yak-vykorystovuvaty-modul-geoip\/"},"modified":"2024-07-19T19:18:11","modified_gmt":"2024-07-19T16:18:11","slug":"yak-vikoristovuvati-modul-geoip","status":"publish","type":"ht_kb","link":"https:\/\/tuthost.ua\/uk\/faq\/yak-vikoristovuvati-modul-geoip\/","title":{"rendered":"\u042f\u043a \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u043c\u043e\u0434\u0443\u043b\u044c GeoIP?"},"content":{"rendered":"\n<p>\u041d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445 \u0432\u0456\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0443 \u0434\u0435 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0454\u0442\u044c\u0441\u044f \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440 Litespeed,<\/p>\n\n<p>\u0432\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439 \u0456 \u043d\u0430\u043b\u0430\u0448\u0442\u043e\u0432\u0430\u043d\u0438\u0439 \u0434\u043b\u044f \u0440\u043e\u0431\u043e\u0442\u0438 \u043c\u043e\u0434\u0443\u043b\u044c GeoIP \u0437 \u0431\u0430\u0437\u0430\u043c\u0438 \u0434\u0430\u043d\u0438\u0445 \u043a\u0440\u0430\u0457\u043d \u0456 ASN \u043c\u0435\u0440\u0435\u0436.<\/p>\n\n<p>\u0412\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0446\u0435\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u043c\u043e\u0436\u043d\u0430 \u0448\u043b\u044f\u0445\u043e\u043c \u0432\u043d\u0435\u0441\u0435\u043d\u043d\u044f \u043f\u0440\u0430\u0432\u0438\u043b \u0434\u043e \u043a\u043e\u043d\u0444\u0456\u0433\u0443\u0440\u0430\u0446\u0456\u0439\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0443 .htaccess<\/p>\n\n<p>\u0426\u0435\u0439 \u0444\u0430\u0439\u043b \u043c\u0430\u0454 \u043c\u0456\u0441\u0442\u0438\u0442\u0438\u0441\u044f \u0432 \u043a\u043e\u0440\u0435\u043d\u0456 \u0441\u0430\u0439\u0442\u0443, \u044f\u043a\u0449\u043e \u0443 \u0412\u0430\u0441 \u043d\u0435\u043c\u0430\u0454 \u0442\u0430\u043a\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0443, \u0442\u043e \u0441\u0442\u0432\u043e\u0440\u0456\u0442\u044c \u0439\u043e\u0433\u043e \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0433\u043e \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0430 \u0432 \u043f\u0430\u043d\u0435\u043b\u0456 \u0443\u043f\u0440\u0430\u0432\u043b\u0456\u043d\u043d\u044f \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u043e\u043c DirectAdmin \u0430\u0431\u043e \u043f\u043e FTP.<\/p>\n\n<h4 class=\"wp-block-heading\" id=\"&#x43F;&#x440;&#x438;&#x43C;&#x435;&#x440;&#x44B;-&#x438;&#x441;&#x43F;&#x43E;&#x43B;&#x44C;&#x437;&#x43E;&#x432;&#x430;&#x43D;&#x438;&#x44F;-&#x43C;&#x43E;&#x434;&#x443;&#x43B;&#x44F;\">\u041f\u0440\u0438\u043a\u043b\u0430\u0434\u0438 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u043d\u044f \u043c\u043e\u0434\u0443\u043b\u044f:<\/h4>\n\n<h5 class=\"wp-block-heading\" id=\"&#x43F;&#x440;&#x438;&#x43C;&#x435;&#x440;-1-&#x431;&#x43B;&#x43E;&#x43A;&#x438;&#x440;&#x43E;&#x432;&#x430;&#x442;&#x44C;-&#x434;&#x43E;&#x441;&#x442;&#x443;&#x43F;-&#x43A;-&#x444;&#x430;&#x438;&#x43B;&#x430;&#x43C;-wp-login-php-&#x438;-xmlrpc-php-&#x438;&#x437;-&#x43E;&#x43F;&#x440;&#x435;&#x434;&#x435;&#x43B;&#x435;&#x43D;&#x43D;&#x44B;&#x445;-&#x441;&#x442;&#x440;&#x430;&#x43D;\">\u041f\u0440\u0438\u043a\u043b\u0430\u0434 1: \u0431\u043b\u043e\u043a\u0443\u0432\u0430\u0442\u0438 \u0434\u043e\u0441\u0442\u0443\u043f \u0434\u043e \u0444\u0430\u0439\u043b\u0456\u0432 wp-login.php \u0456 xmlrpc.php \u0437 \u043f\u0435\u0432\u043d\u0438\u0445 \u043a\u0440\u0430\u0457\u043d.  <\/h5>\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><em>&lt;IfModule mod_geoip.c&gt;<\/em><em>RewriteEngine on<\/em><em>RewriteCond %{ENV:GEOIP_COUNTRY_CODE}!^(GB|DK|US|IN)$<\/em><em>RewriteRule (wp-login|xmlrpc).php$ &#8211; (wp-login|xmlrpc).php$ &#8211; (wp-login|xmlrpc).php$  [F,L]<\/em><em>&lt;\/IfModule&gt;<\/em><\/td><\/tr><\/tbody><\/table><\/figure>\n<h4 class=\"wp-block-heading\" id=\"&#x43F;&#x440;&#x438;&#x43C;&#x435;&#x440;-2-&#x43F;&#x435;&#x440;&#x435;&#x430;&#x434;&#x440;&#x435;&#x441;&#x430;&#x446;&#x438;&#x44F;-&#x43F;&#x43E;&#x441;&#x435;&#x442;&#x438;&#x442;&#x435;&#x43B;&#x435;&#x438;-&#x43D;&#x430;-&#x43E;&#x441;&#x43D;&#x43E;&#x432;&#x435;-&#x441;&#x442;&#x440;&#x430;&#x43D;&#x44B;\">\u041f\u0440\u0438\u043a\u043b\u0430\u0434 2:<strong> <\/strong>\u043f\u0435\u0440\u0435\u0430\u0434\u0440\u0435\u0441\u0430\u0446\u0456\u044f \u0432\u0456\u0434\u0432\u0456\u0434\u0443\u0432\u0430\u0447\u0456\u0432 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0456 \u043a\u0440\u0430\u0457\u043d\u0438.<\/h4>\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><em>&lt;IfModule LiteSpeed&gt;<\/em><em>GeoIPEnable On<\/em><em># \u041f\u0435\u0440\u0435\u0430\u0434\u0440\u0435\u0441\u0430\u0446\u0456\u044f \u043e\u0434\u043d\u0456\u0454\u0457 \u043a\u0440\u0430\u0457\u043d\u0438<\/em><em>RewriteEngine on<\/em><em>RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^UA$<\/em><em>RewriteRule ^(.*)$ https:\/\/site.ua$1 [R,L]<\/em> <br\/><em># \u041f\u0435\u0440\u0435\u0430\u0434\u0440\u0435\u0441\u0430\u0446\u0456\u044f \u043a\u0456\u043b\u044c\u043a\u043e\u0445 \u043a\u0440\u0430\u0457\u043d \u043d\u0430 \u043e\u0434\u043d\u0443 \u0430\u0434\u0440\u0435\u0441\u0443<\/em><em>RewriteEngine on<\/em><em>RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^(SK|CZ|PL)$<\/em><em>RewriteRule ^(.*)$ https:\/\/site.com$1 [R,L]<\/em><em>&lt;\/IfModule&gt;<\/em><\/td><\/tr><\/tbody><\/table><\/figure>\n<p>\u0422\u0430\u043a\u043e\u0436 \u043c\u043e\u0436\u043d\u0430 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0446\u0435\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u0443 PHP \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u0445, \u0442\u0430\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0437\u043c\u0456\u043d\u043d\u0430 \u043e\u0442\u043e\u0447\u0435\u043d\u043d\u044f $_SERVER[&#8216;GEOIP_COUNTRY_CODE&#8217;]<\/p>\n\n<p>\u0430\u043b\u0435 \u0434\u043b\u044f \u0446\u044c\u043e\u0433\u043e \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0432\u0432\u0456\u043c\u043a\u043d\u0443\u0442\u0438 \u043c\u043e\u0434\u0443\u043b\u044c GeoIP \u0443 \u0444\u0430\u0439\u043b\u0456 \u043a\u043e\u043d\u0444\u0456\u0433\u0443\u0440\u0430\u0446\u0456\u0457 .htaccess<\/p>\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><em>&lt;IfModule LiteSpeed&gt;<\/em><em> GeoIPEnable On<\/em><em>&lt;\/IfModule&gt;<\/em><\/td><\/tr><\/tbody><\/table><\/figure>","protected":false},"excerpt":{"rendered":"<p>\u041d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445 \u0432\u0456\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0443 \u0434\u0435 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0454\u0442\u044c\u0441\u044f \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440 Litespeed, \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439 \u0456 \u043d\u0430\u043b\u0430\u0448\u0442\u043e\u0432\u0430\u043d\u0438\u0439 \u0434\u043b\u044f \u0440\u043e\u0431\u043e\u0442\u0438 \u043c\u043e\u0434\u0443\u043b\u044c GeoIP \u0437 \u0431\u0430\u0437\u0430\u043c\u0438 \u0434\u0430\u043d\u0438\u0445 \u043a\u0440\u0430\u0457\u043d \u0456 ASN \u043c\u0435\u0440\u0435\u0436. \u0412\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0446\u0435\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u043c\u043e\u0436\u043d\u0430 \u0448\u043b\u044f\u0445\u043e\u043c \u0432\u043d\u0435\u0441\u0435\u043d\u043d\u044f \u043f\u0440\u0430\u0432\u0438\u043b \u0434\u043e \u043a\u043e\u043d\u0444\u0456\u0433\u0443\u0440\u0430\u0446\u0456\u0439\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0443 .htaccess \u0426\u0435\u0439 \u0444\u0430\u0439\u043b \u043c\u0430\u0454 \u043c\u0456\u0441\u0442\u0438\u0442\u0438\u0441\u044f \u0432 \u043a\u043e\u0440\u0435\u043d\u0456 \u0441\u0430\u0439\u0442\u0443, \u044f\u043a\u0449\u043e \u0443 \u0412\u0430\u0441 \u043d\u0435\u043c\u0430\u0454 \u0442\u0430\u043a\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0443, \u0442\u043e \u0441\u0442\u0432\u043e\u0440\u0456\u0442\u044c \u0439\u043e\u0433\u043e \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0433\u043e \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0430 \u0432 \u043f\u0430\u043d\u0435\u043b\u0456&#8230;<\/p>\n","protected":false},"author":13,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"inline_featured_image":false,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","ghostkit_customizer_options":"","ghostkit_custom_css":"","ghostkit_custom_js_head":"","ghostkit_custom_js_foot":"","ghostkit_typography":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"ht-kb-category":[10699,10690],"ht-kb-tag":[],"class_list":["post-56709","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-zagalni-pitannya","ht_kb_category-panel-keruvannya-directadmin"],"taxonomy_info":{"ht_kb_category":[{"value":10699,"label":"\u0417\u0430\u0433\u0430\u043b\u044c\u043d\u0456 \u043f\u0438\u0442\u0430\u043d\u043d\u044f"},{"value":10690,"label":"\u041f\u0430\u043d\u0435\u043b\u044c \u043a\u0435\u0440\u0443\u0432\u0430\u043d\u043d\u044f - Directadmin"}]},"featured_image_src_large":[],"author_info":{"display_name":"\u0414\u0430\u0432\u0438\u0434","author_link":"https:\/\/tuthost.ua\/uk\/author\/david-tuthost-com\/"},"comment_info":0,"_links":{"self":[{"href":"https:\/\/tuthost.ua\/uk\/wp-json\/wp\/v2\/ht-kb\/56709","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tuthost.ua\/uk\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/tuthost.ua\/uk\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/tuthost.ua\/uk\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/tuthost.ua\/uk\/wp-json\/wp\/v2\/comments?post=56709"}],"version-history":[{"count":1,"href":"https:\/\/tuthost.ua\/uk\/wp-json\/wp\/v2\/ht-kb\/56709\/revisions"}],"predecessor-version":[{"id":56710,"href":"https:\/\/tuthost.ua\/uk\/wp-json\/wp\/v2\/ht-kb\/56709\/revisions\/56710"}],"wp:attachment":[{"href":"https:\/\/tuthost.ua\/uk\/wp-json\/wp\/v2\/media?parent=56709"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/tuthost.ua\/uk\/wp-json\/wp\/v2\/ht-kb-category?post=56709"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/tuthost.ua\/uk\/wp-json\/wp\/v2\/ht-kb-tag?post=56709"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}