{"id":1359,"date":"2019-12-04T06:42:51","date_gmt":"2019-12-04T06:42:51","guid":{"rendered":"https:\/\/theemailshop.co.uk\/forum\/?post_type=epkb_post_type_1&amp;p=1359"},"modified":"2019-12-04T06:42:51","modified_gmt":"2019-12-04T06:42:51","slug":"how-would-you-restrict-the-directory-access-by-ip-address-2","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-2\/","title":{"rendered":"How would you restrict the directory access by IP address?"},"content":{"rendered":"<p>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 access by IP Address.<\/p>\n<p>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<strong>\u00a0\/wp-admin\/.htaccess<\/strong>\u00a0and you need to place this code, and do not forget to replace the allowed IP with your own IP address.<\/p>\n<p>&nbsp;<\/p>\n<p><em><strong>order deny, allow<\/strong><\/em><br \/>\n<em><strong>deny from all<\/strong><\/em><br \/>\n<em><strong>allow from\u00a0YOUR-IP-ADDRESS-HERE<\/strong><\/em><\/p>\n<p>&nbsp;<\/p>\n<p>(Replace <strong>&#8220;Your-IP-Address-Here&#8221;<\/strong> with the IP Address)<\/p>\n<p>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.<\/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":9,"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":[78],"epkb_post_type_1_tag":[372,373,374,375,343,376],"class_list":["post-1359","epkb_post_type_1","type-epkb_post_type_1","status-publish","hentry","epkb_post_type_1_category-security-siteworx-control-panel","epkb_post_type_1_tag-access","epkb_post_type_1_tag-admin","epkb_post_type_1_tag-allow","epkb_post_type_1_tag-hackers","epkb_post_type_1_tag-ip","epkb_post_type_1_tag-secure"],"_links":{"self":[{"href":"https:\/\/theemailshop.co.uk\/community\/wp-json\/wp\/v2\/epkb_post_type_1\/1359","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\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/theemailshop.co.uk\/community\/wp-json\/wp\/v2\/comments?post=1359"}],"version-history":[{"count":0,"href":"https:\/\/theemailshop.co.uk\/community\/wp-json\/wp\/v2\/epkb_post_type_1\/1359\/revisions"}],"wp:attachment":[{"href":"https:\/\/theemailshop.co.uk\/community\/wp-json\/wp\/v2\/media?parent=1359"}],"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=1359"},{"taxonomy":"epkb_post_type_1_tag","embeddable":true,"href":"https:\/\/theemailshop.co.uk\/community\/wp-json\/wp\/v2\/epkb_post_type_1_tag?post=1359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}