{"id":589,"date":"2019-12-03T10:32:53","date_gmt":"2019-12-03T10:32:53","guid":{"rendered":"https:\/\/theemailshop.co.uk\/forum\/?post_type=epkb_post_type_1&amp;p=589"},"modified":"2019-12-03T10:32:53","modified_gmt":"2019-12-03T10:32:53","slug":"how-would-you-restrict-the-directory-access-by-ip-address","status":"publish","type":"epkb_post_type_1","link":"https:\/\/theemailshop.co.uk\/community\/knowledge-base\/how-would-you-restrict-the-directory-access-by-ip-address\/","title":{"rendered":"How would you restrict the directory access by IP address?"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">If you want to make your admin areas secure from hackers, it\u2019s better to allow access only from the selected IP address to the admin directory. You can just make .htaccess file in your directory where you need to restrict the access by IP Address.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">For instance, if your WordPress blog has installed on the main directory such as example.com\/wp-admin, it\u2019s better to build .htaccess file in\u00a0<\/span><span style=\"font-weight: 400;\">\/wp-admin\/.htaccess<\/span><span style=\"font-weight: 400;\">\u00a0and you need to place this code, and do not forget to replace the allowed IP with your own IP address.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">Order deny, Allow<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">Deny from all<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">Allow from YOUR-IP-ADDRESS-HERE<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">(Replace &#8220;<\/span><span style=\"font-weight: 400;\">Your-IP-Address-Here<\/span><span style=\"font-weight: 400;\">&#8221; with the IP Address)<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">You need to check this out by accessing your \/wp-admin IP address from some other IP address that is not allowed by your .htaccess file.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want to make your admin areas secure from hackers, it\u2019s better to allow access only from the selected [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"epkb_post_type_1_category":[33],"epkb_post_type_1_tag":[29,60,61],"class_list":["post-589","epkb_post_type_1","type-epkb_post_type_1","status-publish","hentry","epkb_post_type_1_category-siteworx-control-panel","epkb_post_type_1_tag-cpanel","epkb_post_type_1_tag-htaccess","epkb_post_type_1_tag-ip-address"],"_links":{"self":[{"href":"https:\/\/theemailshop.co.uk\/community\/wp-json\/wp\/v2\/epkb_post_type_1\/589","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theemailshop.co.uk\/community\/wp-json\/wp\/v2\/epkb_post_type_1"}],"about":[{"href":"https:\/\/theemailshop.co.uk\/community\/wp-json\/wp\/v2\/types\/epkb_post_type_1"}],"author":[{"embeddable":true,"href":"https:\/\/theemailshop.co.uk\/community\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/theemailshop.co.uk\/community\/wp-json\/wp\/v2\/comments?post=589"}],"version-history":[{"count":0,"href":"https:\/\/theemailshop.co.uk\/community\/wp-json\/wp\/v2\/epkb_post_type_1\/589\/revisions"}],"wp:attachment":[{"href":"https:\/\/theemailshop.co.uk\/community\/wp-json\/wp\/v2\/media?parent=589"}],"wp:term":[{"taxonomy":"epkb_post_type_1_category","embeddable":true,"href":"https:\/\/theemailshop.co.uk\/community\/wp-json\/wp\/v2\/epkb_post_type_1_category?post=589"},{"taxonomy":"epkb_post_type_1_tag","embeddable":true,"href":"https:\/\/theemailshop.co.uk\/community\/wp-json\/wp\/v2\/epkb_post_type_1_tag?post=589"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}