{"id":165,"date":"2026-11-11T18:44:00","date_gmt":"2026-11-11T17:44:00","guid":{"rendered":"https:\/\/www.cisilino.com\/?p=165"},"modified":"2026-11-11T18:52:26","modified_gmt":"2026-11-11T17:52:26","slug":"wordpress-hardening-htaccess","status":"publish","type":"post","link":"https:\/\/www.cisilino.com\/en\/2026\/11\/11\/wordpress-hardening-htaccess\/","title":{"rendered":"WordPress hardening with .htaccess: what to switch on"},"content":{"rendered":"<p><strong>WordPress hardening with <code>.htaccess<\/code><\/strong> is the set of measures you wish you had put in place after the fact. The plugin gathers them in a single section. They are all off by default: you decide what to switch on. Every item says what it does and what it can break.<\/p>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.cisilino.com\/wp-content\/uploads\/2026\/10\/wordpress-hardening-htaccess.webp\" alt=\"WordPress hardening: three concentric circles with gaps, green, teal and purple, around a dot\" width=\"1200\" height=\"630\"\/><\/figure>\n<h2>The WordPress hardening switches<\/h2>\n<p>These are the WordPress hardening switches you can turn on one at a time:<\/p>\n<ul>\n<li><strong>No PHP in <code>wp-content\/uploads<\/code><\/strong>, including the <code>.phar<\/code>, <code>.phps<\/code> and <code>.pht<\/code> extensions. It is the most effective protection against webshells disguised as images.<\/li>\n<li><strong>Directory listing disabled<\/strong> where there is no <code>index<\/code> file.<\/li>\n<li><strong>Direct access blocked<\/strong> to <code>wp-config.php<\/code>, <code>.htaccess<\/code>, <code>readme.html<\/code> and <code>debug.log<\/code>.<\/li>\n<li><strong>Custom paths<\/strong> to block.<\/li>\n<li><strong>XML-RPC disabled<\/strong>, a frequent target.<\/li>\n<li><strong>User enumeration<\/strong> via <code>?author=N<\/code> blocked, because it reveals usernames.<\/li>\n<li><a href=\"https:\/\/www.cisilino.com\/en\/2026\/10\/29\/cisilino-site-defense-network-security-plugin\/\">Cisilino Site Defense Network: the WordPress security plugin<\/a><\/li>\n<\/ul>\n<h2>What can break<\/h2>\n<p>Not every WordPress hardening switch suits every site: XML-RPC is needed by some apps and publishing services, so if you use them, leave it as it is. The PHP block in <code>uploads<\/code> can stop a plugin that used to put code there. Blocking <code>debug.log<\/code>, on the other hand, never causes problems.<\/p>\n<p>Custom paths: since version 1.0.3 the plugin never writes quotes or control characters into the rules it creates from your paths. Before, the customisation was not filtered enough and a badly written path could produce an invalid .htaccess and block the whole site. We chose the safest route: those characters are discarded silently when the rule is written. So you never have to deal with an error. In the field they stay as you typed them, but have no effect.<\/p>\n<h2>How WordPress hardening writes the rules<\/h2>\n<p>The rules end up in <code>.htaccess<\/code>. We removed the <code>php_admin_flag<\/code> directive. On PHP-FPM or CGI hosting with Apache it caused a 500 error on the whole site. <code>Require all denied<\/code> alone is enough. If you deactivate the plugin the rules disappear, reactivate it and they come back. For background, the Apache guide to <a href=\"https:\/\/httpd.apache.org\/docs\/2.4\/howto\/htaccess.html\" target=\"_blank\" rel=\"noopener\">.htaccess files<\/a> is the reference.<\/p>\n<p>A practical tip: switch on one WordPress hardening option at a time. Look at the site, run the built-in test and only then move on to the next.<\/p>\n<h2>Frequently asked questions<\/h2>\n<h3>What is WordPress hardening?<\/h3>\n<p>The set of measures that reduce the attack surface: no PHP in uploads, sensitive files protected, XML-RPC and user enumeration closed.<\/p>\n<h3>Can disabling XML-RPC cause problems?<\/h3>\n<p>Yes, if you use apps or services that need it. In that case it is better to leave it on.<\/p>\n<h3>What happens to the rules if I deactivate the plugin?<\/h3>\n<p>They are removed from .htaccess. When you reactivate the plugin they come back as they were.<\/p>\n<h2>Read more<\/h2>\n<ul>\n<li><a href=\"https:\/\/www.cisilino.com\/en\/2026\/11\/11\/dangerous-file-uploads-wordpress\/\">Dangerous file uploads in WordPress: double extensions<\/a><\/li>\n<li><a href=\"https:\/\/www.cisilino.com\/?p=95\">WordPress HTTP security headers and HSTS without server access<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>WordPress hardening with .htaccess in a single section: what you can switch on, what might break and how the plugin writes the rules.<\/p>\n","protected":false},"author":1,"featured_media":621,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"wpai_generated_summary":"","footnotes":""},"categories":[98],"tags":[144,184,248,280,288],"class_list":["post-165","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-csdn-en","tag-htaccess-en","tag-hardening-en","tag-wordpress-security","tag-wp-config-en","tag-xml-rpc-en"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.5.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"WordPress hardening with .htaccess in a single section: what you can switch on, what might break and how the plugin writes the rules.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"matteocisilino\"\/>\n\t<meta name=\"google-site-verification\" content=\"_A-1f0dO30IDVHfP9muflI8kHQs-H4YOi8WLUkYzuLE\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.cisilino.com\/en\/2026\/11\/11\/wordpress-hardening-htaccess\/\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.5.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_GB\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Matteo Cisilino - Guide su WordPress, server e sicurezza\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"WordPress hardening with .htaccess: what to switch on\" \/>\n\t\t<meta property=\"og:description\" content=\"WordPress hardening with .htaccess in a single section: what you can switch on, what might break and how the plugin writes the rules.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.cisilino.com\/en\/2026\/11\/11\/wordpress-hardening-htaccess\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.cisilino.com\/wp-content\/uploads\/2026\/10\/wordpress-hardening-htaccess.webp\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.cisilino.com\/wp-content\/uploads\/2026\/10\/wordpress-hardening-htaccess.webp\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2026-11-11T17:44:00+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-11-11T17:52:26+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"WordPress hardening with .htaccess: what to switch on\" \/>\n\t\t<meta name=\"twitter:description\" content=\"WordPress hardening with .htaccess in a single section: what you can switch on, what might break and how the plugin writes the rules.\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.cisilino.com\/wp-content\/uploads\/2026\/10\/wordpress-hardening-htaccess.webp\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/2026\\\/11\\\/11\\\/wordpress-hardening-htaccess\\\/#blogposting\",\"name\":\"WordPress hardening with .htaccess: what to switch on\",\"headline\":\"WordPress hardening with .htaccess: what to switch on\",\"author\":{\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/author\\\/matteocisilino\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.cisilino.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/wordpress-hardening-htaccess.webp\",\"width\":1200,\"height\":630,\"caption\":\"WordPress hardening: three concentric circles with gaps, green, teal and purple, around a dot\"},\"datePublished\":\"2026-11-11T18:44:00+01:00\",\"dateModified\":\"2026-11-11T18:52:26+01:00\",\"inLanguage\":\"en-GB\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/2026\\\/11\\\/11\\\/wordpress-hardening-htaccess\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/2026\\\/11\\\/11\\\/wordpress-hardening-htaccess\\\/#webpage\"},\"articleSection\":\"csdn, .htaccess, hardening, WordPress security, wp-config, XML-RPC\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/2026\\\/11\\\/11\\\/wordpress-hardening-htaccess\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/category\\\/csdn-en\\\/#listItem\",\"name\":\"csdn\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/category\\\/csdn-en\\\/#listItem\",\"position\":2,\"name\":\"csdn\",\"item\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/category\\\/csdn-en\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/2026\\\/11\\\/11\\\/wordpress-hardening-htaccess\\\/#listItem\",\"name\":\"WordPress hardening with .htaccess: what to switch on\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/2026\\\/11\\\/11\\\/wordpress-hardening-htaccess\\\/#listItem\",\"position\":3,\"name\":\"WordPress hardening with .htaccess: what to switch on\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/category\\\/csdn-en\\\/#listItem\",\"name\":\"csdn\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/#organization\",\"name\":\"Matteo Cisilino\",\"description\":\"Guide su WordPress, server e sicurezza\",\"url\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.cisilino.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/logo-cisilino-512.png\",\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/2026\\\/11\\\/11\\\/wordpress-hardening-htaccess\\\/#organizationLogo\",\"width\":512,\"height\":512,\"caption\":\"Logo: un cerchio a sinistra che si divide in cerchi pi\\u00f9 piccoli\"},\"image\":{\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/2026\\\/11\\\/11\\\/wordpress-hardening-htaccess\\\/#organizationLogo\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/author\\\/matteocisilino\\\/#author\",\"url\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/author\\\/matteocisilino\\\/\",\"name\":\"matteocisilino\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/2026\\\/11\\\/11\\\/wordpress-hardening-htaccess\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/639872265f0661e8aee8924ba9d756b00ea816f8286fab99a5116c729d49618f?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"matteocisilino\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/2026\\\/11\\\/11\\\/wordpress-hardening-htaccess\\\/#webpage\",\"url\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/2026\\\/11\\\/11\\\/wordpress-hardening-htaccess\\\/\",\"name\":\"WordPress hardening with .htaccess: what to switch on\",\"description\":\"WordPress hardening with .htaccess in a single section: what you can switch on, what might break and how the plugin writes the rules.\",\"inLanguage\":\"en-GB\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/2026\\\/11\\\/11\\\/wordpress-hardening-htaccess\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/author\\\/matteocisilino\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/author\\\/matteocisilino\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.cisilino.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/wordpress-hardening-htaccess.webp\",\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/2026\\\/11\\\/11\\\/wordpress-hardening-htaccess\\\/#mainImage\",\"width\":1200,\"height\":630,\"caption\":\"WordPress hardening: three concentric circles with gaps, green, teal and purple, around a dot\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/2026\\\/11\\\/11\\\/wordpress-hardening-htaccess\\\/#mainImage\"},\"datePublished\":\"2026-11-11T18:44:00+01:00\",\"dateModified\":\"2026-11-11T18:52:26+01:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/\",\"name\":\"Matteo Cisilino\",\"description\":\"Guide su WordPress, server e sicurezza\",\"inLanguage\":\"en-GB\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"WordPress hardening with .htaccess: what to switch on","description":"WordPress hardening with .htaccess in a single section: what you can switch on, what might break and how the plugin writes the rules.","canonical_url":"https:\/\/www.cisilino.com\/en\/2026\/11\/11\/wordpress-hardening-htaccess\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"google-site-verification":"_A-1f0dO30IDVHfP9muflI8kHQs-H4YOi8WLUkYzuLE","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.cisilino.com\/en\/2026\/11\/11\/wordpress-hardening-htaccess\/#blogposting","name":"WordPress hardening with .htaccess: what to switch on","headline":"WordPress hardening with .htaccess: what to switch on","author":{"@id":"https:\/\/www.cisilino.com\/en\/author\/matteocisilino\/#author"},"publisher":{"@id":"https:\/\/www.cisilino.com\/en\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.cisilino.com\/wp-content\/uploads\/2026\/10\/wordpress-hardening-htaccess.webp","width":1200,"height":630,"caption":"WordPress hardening: three concentric circles with gaps, green, teal and purple, around a dot"},"datePublished":"2026-11-11T18:44:00+01:00","dateModified":"2026-11-11T18:52:26+01:00","inLanguage":"en-GB","mainEntityOfPage":{"@id":"https:\/\/www.cisilino.com\/en\/2026\/11\/11\/wordpress-hardening-htaccess\/#webpage"},"isPartOf":{"@id":"https:\/\/www.cisilino.com\/en\/2026\/11\/11\/wordpress-hardening-htaccess\/#webpage"},"articleSection":"csdn, .htaccess, hardening, WordPress security, wp-config, XML-RPC"},{"@type":"BreadcrumbList","@id":"https:\/\/www.cisilino.com\/en\/2026\/11\/11\/wordpress-hardening-htaccess\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.cisilino.com\/en\/#listItem","position":1,"name":"Home","item":"https:\/\/www.cisilino.com\/en\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.cisilino.com\/en\/category\/csdn-en\/#listItem","name":"csdn"}},{"@type":"ListItem","@id":"https:\/\/www.cisilino.com\/en\/category\/csdn-en\/#listItem","position":2,"name":"csdn","item":"https:\/\/www.cisilino.com\/en\/category\/csdn-en\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.cisilino.com\/en\/2026\/11\/11\/wordpress-hardening-htaccess\/#listItem","name":"WordPress hardening with .htaccess: what to switch on"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.cisilino.com\/en\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.cisilino.com\/en\/2026\/11\/11\/wordpress-hardening-htaccess\/#listItem","position":3,"name":"WordPress hardening with .htaccess: what to switch on","previousItem":{"@type":"ListItem","@id":"https:\/\/www.cisilino.com\/en\/category\/csdn-en\/#listItem","name":"csdn"}}]},{"@type":"Organization","@id":"https:\/\/www.cisilino.com\/en\/#organization","name":"Matteo Cisilino","description":"Guide su WordPress, server e sicurezza","url":"https:\/\/www.cisilino.com\/en\/","logo":{"@type":"ImageObject","url":"https:\/\/www.cisilino.com\/wp-content\/uploads\/2026\/10\/logo-cisilino-512.png","@id":"https:\/\/www.cisilino.com\/en\/2026\/11\/11\/wordpress-hardening-htaccess\/#organizationLogo","width":512,"height":512,"caption":"Logo: un cerchio a sinistra che si divide in cerchi pi\u00f9 piccoli"},"image":{"@id":"https:\/\/www.cisilino.com\/en\/2026\/11\/11\/wordpress-hardening-htaccess\/#organizationLogo"}},{"@type":"Person","@id":"https:\/\/www.cisilino.com\/en\/author\/matteocisilino\/#author","url":"https:\/\/www.cisilino.com\/en\/author\/matteocisilino\/","name":"matteocisilino","image":{"@type":"ImageObject","@id":"https:\/\/www.cisilino.com\/en\/2026\/11\/11\/wordpress-hardening-htaccess\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/639872265f0661e8aee8924ba9d756b00ea816f8286fab99a5116c729d49618f?s=96&d=mm&r=g","width":96,"height":96,"caption":"matteocisilino"}},{"@type":"WebPage","@id":"https:\/\/www.cisilino.com\/en\/2026\/11\/11\/wordpress-hardening-htaccess\/#webpage","url":"https:\/\/www.cisilino.com\/en\/2026\/11\/11\/wordpress-hardening-htaccess\/","name":"WordPress hardening with .htaccess: what to switch on","description":"WordPress hardening with .htaccess in a single section: what you can switch on, what might break and how the plugin writes the rules.","inLanguage":"en-GB","isPartOf":{"@id":"https:\/\/www.cisilino.com\/en\/#website"},"breadcrumb":{"@id":"https:\/\/www.cisilino.com\/en\/2026\/11\/11\/wordpress-hardening-htaccess\/#breadcrumblist"},"author":{"@id":"https:\/\/www.cisilino.com\/en\/author\/matteocisilino\/#author"},"creator":{"@id":"https:\/\/www.cisilino.com\/en\/author\/matteocisilino\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/www.cisilino.com\/wp-content\/uploads\/2026\/10\/wordpress-hardening-htaccess.webp","@id":"https:\/\/www.cisilino.com\/en\/2026\/11\/11\/wordpress-hardening-htaccess\/#mainImage","width":1200,"height":630,"caption":"WordPress hardening: three concentric circles with gaps, green, teal and purple, around a dot"},"primaryImageOfPage":{"@id":"https:\/\/www.cisilino.com\/en\/2026\/11\/11\/wordpress-hardening-htaccess\/#mainImage"},"datePublished":"2026-11-11T18:44:00+01:00","dateModified":"2026-11-11T18:52:26+01:00"},{"@type":"WebSite","@id":"https:\/\/www.cisilino.com\/en\/#website","url":"https:\/\/www.cisilino.com\/en\/","name":"Matteo Cisilino","description":"Guide su WordPress, server e sicurezza","inLanguage":"en-GB","publisher":{"@id":"https:\/\/www.cisilino.com\/en\/#organization"}}]},"og:locale":"en_GB","og:site_name":"Matteo Cisilino - Guide su WordPress, server e sicurezza","og:type":"article","og:title":"WordPress hardening with .htaccess: what to switch on","og:description":"WordPress hardening with .htaccess in a single section: what you can switch on, what might break and how the plugin writes the rules.","og:url":"https:\/\/www.cisilino.com\/en\/2026\/11\/11\/wordpress-hardening-htaccess\/","og:image":"https:\/\/www.cisilino.com\/wp-content\/uploads\/2026\/10\/wordpress-hardening-htaccess.webp","og:image:secure_url":"https:\/\/www.cisilino.com\/wp-content\/uploads\/2026\/10\/wordpress-hardening-htaccess.webp","og:image:width":1200,"og:image:height":630,"article:published_time":"2026-11-11T17:44:00+00:00","article:modified_time":"2026-11-11T17:52:26+00:00","twitter:card":"summary_large_image","twitter:title":"WordPress hardening with .htaccess: what to switch on","twitter:description":"WordPress hardening with .htaccess in a single section: what you can switch on, what might break and how the plugin writes the rules.","twitter:image":"https:\/\/www.cisilino.com\/wp-content\/uploads\/2026\/10\/wordpress-hardening-htaccess.webp"},"aioseo_meta_data":{"post_id":"165","title":"WordPress hardening with .htaccess: what to switch on","description":"WordPress hardening with .htaccess in a single section: what you can switch on, what might break and how the plugin writes the rules.","keywords":null,"keyphrases":{"focus":{"keyphrase":"wordpress hardening"}},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-10-29 09:16:37","updated":"2026-10-29 19:00:18","focus_keyword":"wordpress hardening htaccess","additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.cisilino.com\/en\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.cisilino.com\/en\/category\/csdn-en\/\" title=\"csdn\">csdn<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tWordPress hardening with .htaccess: what to switch on\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.cisilino.com\/en\/"},{"label":"csdn","link":"https:\/\/www.cisilino.com\/en\/category\/csdn-en\/"},{"label":"WordPress hardening with .htaccess: what to switch on","link":"https:\/\/www.cisilino.com\/en\/2026\/11\/11\/wordpress-hardening-htaccess\/"}],"_links":{"self":[{"href":"https:\/\/www.cisilino.com\/en\/wp-json\/wp\/v2\/posts\/165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cisilino.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cisilino.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cisilino.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cisilino.com\/en\/wp-json\/wp\/v2\/comments?post=165"}],"version-history":[{"count":9,"href":"https:\/\/www.cisilino.com\/en\/wp-json\/wp\/v2\/posts\/165\/revisions"}],"predecessor-version":[{"id":1523,"href":"https:\/\/www.cisilino.com\/en\/wp-json\/wp\/v2\/posts\/165\/revisions\/1523"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.cisilino.com\/en\/wp-json\/wp\/v2\/media\/621"}],"wp:attachment":[{"href":"https:\/\/www.cisilino.com\/en\/wp-json\/wp\/v2\/media?parent=165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cisilino.com\/en\/wp-json\/wp\/v2\/categories?post=165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cisilino.com\/en\/wp-json\/wp\/v2\/tags?post=165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}