{"id":645,"date":"2019-12-03T10:44:14","date_gmt":"2019-12-03T10:44:14","guid":{"rendered":"https:\/\/theemailshop.co.uk\/forum\/?post_type=epkb_post_type_1&amp;p=645"},"modified":"2019-12-03T10:44:14","modified_gmt":"2019-12-03T10:44:14","slug":"how-to-ban-the-ip-address-via-htaccess","status":"publish","type":"epkb_post_type_1","link":"https:\/\/theemailshop.co.uk\/community\/knowledge-base\/how-to-ban-the-ip-address-via-htaccess\/","title":{"rendered":"How to ban the IP address via .HTAccess?"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">If any person is trying to hack the website and you want to block their IP Address, then you should simply add this line to your .htaccess file.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><i><span style=\"font-weight: 400;\">Order allow,<\/span><\/i> <i><span style=\"font-weight: 400;\">deny<\/span><\/i><i><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/i><i><span style=\"font-weight: 400;\">Deny from IP-ADDRESS<\/span><\/i><i><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/i><i><span style=\"font-weight: 400;\">Allow from all<\/span><\/i><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;\">IP address<\/span><span style=\"font-weight: 400;\">&#8221; with that address you need to block.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If any person is trying to hack the website and you want to block their IP Address, then you should [&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":[78,33],"epkb_post_type_1_tag":[29,60,61,76,77],"class_list":["post-645","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_category-siteworx-control-panel","epkb_post_type_1_tag-cpanel","epkb_post_type_1_tag-htaccess","epkb_post_type_1_tag-ip-address","epkb_post_type_1_tag-restricted-authorization","epkb_post_type_1_tag-restricted-ip"],"_links":{"self":[{"href":"https:\/\/theemailshop.co.uk\/community\/wp-json\/wp\/v2\/epkb_post_type_1\/645","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=645"}],"version-history":[{"count":0,"href":"https:\/\/theemailshop.co.uk\/community\/wp-json\/wp\/v2\/epkb_post_type_1\/645\/revisions"}],"wp:attachment":[{"href":"https:\/\/theemailshop.co.uk\/community\/wp-json\/wp\/v2\/media?parent=645"}],"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=645"},{"taxonomy":"epkb_post_type_1_tag","embeddable":true,"href":"https:\/\/theemailshop.co.uk\/community\/wp-json\/wp\/v2\/epkb_post_type_1_tag?post=645"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}