{"id":53298,"date":"2022-10-25T18:04:37","date_gmt":"2022-10-25T15:04:37","guid":{"rendered":"https:\/\/tuthost.ua\/faq\/how-can-i-deny-access-to-a-certain-site-url\/"},"modified":"2024-07-19T20:49:04","modified_gmt":"2024-07-19T17:49:04","slug":"kak-zapretit-dostup-k-opredelennomu-url-sajta","status":"publish","type":"ht_kb","link":"https:\/\/tuthost.ua\/en\/faq\/kak-zapretit-dostup-k-opredelennomu-url-sajta\/","title":{"rendered":"How can I deny access to a certain site URL?"},"content":{"rendered":"\n<p>You can block a certain URL on your site through the .htaccess file<\/p>\n\n<p>This file must be in the root of your site, if not create a new file.<\/p>\n\n<pre class=\"wp-block-code\"><code>SetEnvIf Request_URI \"\/administrator\" block_admin_area\r\nAllow from 192.168.0.1\r\nDeny from env=block_admin_area\r<\/code><\/pre>\n\n<p>This blocks access to \/administrator for all visitors except for IP 192.168.0.1 &#8211; which you can replace with your own IP address.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can block a certain URL on your site through the .htaccess file This file must be in the root of your site, if not create a new file. This blocks access to \/administrator for all visitors except for IP 192.168.0.1 &#8211; which you can replace with your own IP address.<\/p>\n","protected":false},"author":1,"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":[10669],"ht-kb-tag":[],"class_list":["post-53298","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-hosting-en"],"taxonomy_info":{"ht_kb_category":[{"value":10669,"label":"Hosting"}]},"featured_image_src_large":[],"author_info":{"display_name":"Denys Semeniuk","author_link":"https:\/\/tuthost.ua\/en\/author\/semden\/"},"comment_info":0,"_links":{"self":[{"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb\/53298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/comments?post=53298"}],"version-history":[{"count":1,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb\/53298\/revisions"}],"predecessor-version":[{"id":53302,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb\/53298\/revisions\/53302"}],"wp:attachment":[{"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/media?parent=53298"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb-category?post=53298"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb-tag?post=53298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}