{"id":938,"date":"2015-05-12T15:31:14","date_gmt":"2015-05-12T14:31:14","guid":{"rendered":"https:\/\/fredel.fr\/?p=938"},"modified":"2015-05-13T21:46:57","modified_gmt":"2015-05-13T20:46:57","slug":"protection-de-lacces-aux-fichiers-sensibles","status":"publish","type":"post","link":"https:\/\/fredel.fr\/protection-de-lacces-aux-fichiers-sensibles\/","title":{"rendered":"Protection de l\u2019acc\u00e8s aux fichiers sensibles"},"content":{"rendered":"

Ajoutez ces lignes dans le fichier .htaccess \u00e0 la racine du site
\n# Pas d’affichage du contenu des r\u00e9pertoires si pas de premi\u00e8re page
\nOptions -Indexes
\n# Interdiction d’acc\u00e9der directement \u00e0 certains fichiers :<\/p>\n

\r\n\r\n   Order allow,deny\r\n   Deny from all\r\n<\/files>\r\n\r\n   Order allow,deny\r\n   Deny from all\r\n<\/files>\r\n\r\n   Order allow,deny\r\n   Deny from all\r\n<\/files>\r\n\r\n   Order allow,deny\r\n   Deny from all\r\n<\/files>\r\n\r\n   Order allow,deny\r\n   Deny from all\r\n<\/files>\r\n\r\n   Order allow,deny\r\n   Deny from all\r\n<\/files>\r\n\r\n   Order allow,deny\r\n   Deny from all\r\n<\/files>\r\n\r\n   Order allow,deny\r\n   Deny from all\r\n<\/files>\r\n\r\n* Pour bloquer les requ\u00eates trace, delete, debug et track envoy\u00e9 \u00e0 votre site :\r\n
\r\n# block bad request\r\nRewriteEngine On\r\nRewriteCond %{REQUEST_METHOD} ^(TRACE|DELETE|TRACK|DEBUG) [NC]\r\nRewriteRule ^(.*)$ - [F,L]\r\n<\/pre>\n

* Pour bloquer l\u2019acc\u00e8s aux fichiers que les pirates adorent modifier\/v\u00e9roler :<\/p>\n

\r\n# Block the include-only files.\r\nRewriteEngine On\r\nRewriteBase \/\r\nRewriteRule ^wp-admin\/includes\/ - [F,L]\r\nRewriteRule !^wp-includes\/ - [S=3]\r\nRewriteRule ^wp-includes\/[^\/]+\\.php$ - [F,L]\r\nRewriteRule ^wp-includes\/js\/tinymce\/langs\/.+\\.php - [F,L]\r\nRewriteRule ^wp-includes\/theme-compat\/ - [F,L]\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"

Ajoutez ces lignes dans le fichier .htaccess \u00e0 la racine du site # Pas d’affichage du contenu des r\u00e9pertoires si…<\/p>\n","protected":false},"author":21,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[27],"tags":[],"class_list":["post-938","post","type-post","status-publish","format-standard","hentry","category-securite"],"jetpack_publicize_connections":[],"acf":[],"yoast_head":"\nProtection de l\u2019acc\u00e8s aux fichiers sensibles - Fredel<\/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:\/\/fredel.fr\/protection-de-lacces-aux-fichiers-sensibles\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Protection de l\u2019acc\u00e8s aux fichiers sensibles - Fredel\" \/>\n<meta property=\"og:description\" content=\"Ajoutez ces lignes dans le fichier .htaccess \u00e0 la racine du site # Pas d’affichage du contenu des r\u00e9pertoires si...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fredel.fr\/protection-de-lacces-aux-fichiers-sensibles\/\" \/>\n<meta property=\"og:site_name\" content=\"Fredel\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/fredel.agency\" \/>\n<meta property=\"article:published_time\" content=\"2015-05-12T14:31:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2015-05-13T20:46:57+00:00\" \/>\n<meta name=\"author\" content=\"fredel\" \/>\n<meta name=\"twitter:label1\" content=\"\u00c9crit par\" \/>\n\t<meta name=\"twitter:data1\" content=\"fredel\" \/>\n\t<meta name=\"twitter:label2\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fredel.fr\/protection-de-lacces-aux-fichiers-sensibles\/\",\"url\":\"https:\/\/fredel.fr\/protection-de-lacces-aux-fichiers-sensibles\/\",\"name\":\"Protection de l\u2019acc\u00e8s aux fichiers sensibles - Fredel\",\"isPartOf\":{\"@id\":\"https:\/\/fredel.fr\/#website\"},\"datePublished\":\"2015-05-12T14:31:14+00:00\",\"dateModified\":\"2015-05-13T20:46:57+00:00\",\"author\":{\"@id\":\"https:\/\/fredel.fr\/#\/schema\/person\/f93e6e36904f3f58ed59c0e78ed2c1a0\"},\"breadcrumb\":{\"@id\":\"https:\/\/fredel.fr\/protection-de-lacces-aux-fichiers-sensibles\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fredel.fr\/protection-de-lacces-aux-fichiers-sensibles\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fredel.fr\/protection-de-lacces-aux-fichiers-sensibles\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/fredel.fr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Protection de l\u2019acc\u00e8s aux fichiers sensibles\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/fredel.fr\/#website\",\"url\":\"https:\/\/fredel.fr\/\",\"name\":\"Fredel\",\"description\":\"Fredel agency "The Fredel Family"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/fredel.fr\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/fredel.fr\/#\/schema\/person\/f93e6e36904f3f58ed59c0e78ed2c1a0\",\"name\":\"fredel\",\"url\":\"https:\/\/fredel.fr\/author\/fredel\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Protection de l\u2019acc\u00e8s aux fichiers sensibles - Fredel","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:\/\/fredel.fr\/protection-de-lacces-aux-fichiers-sensibles\/","og_locale":"fr_FR","og_type":"article","og_title":"Protection de l\u2019acc\u00e8s aux fichiers sensibles - Fredel","og_description":"Ajoutez ces lignes dans le fichier .htaccess \u00e0 la racine du site # Pas d’affichage du contenu des r\u00e9pertoires si...","og_url":"https:\/\/fredel.fr\/protection-de-lacces-aux-fichiers-sensibles\/","og_site_name":"Fredel","article_publisher":"https:\/\/www.facebook.com\/fredel.agency","article_published_time":"2015-05-12T14:31:14+00:00","article_modified_time":"2015-05-13T20:46:57+00:00","author":"fredel","twitter_misc":{"\u00c9crit par":"fredel","Dur\u00e9e de lecture estim\u00e9e":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/fredel.fr\/protection-de-lacces-aux-fichiers-sensibles\/","url":"https:\/\/fredel.fr\/protection-de-lacces-aux-fichiers-sensibles\/","name":"Protection de l\u2019acc\u00e8s aux fichiers sensibles - Fredel","isPartOf":{"@id":"https:\/\/fredel.fr\/#website"},"datePublished":"2015-05-12T14:31:14+00:00","dateModified":"2015-05-13T20:46:57+00:00","author":{"@id":"https:\/\/fredel.fr\/#\/schema\/person\/f93e6e36904f3f58ed59c0e78ed2c1a0"},"breadcrumb":{"@id":"https:\/\/fredel.fr\/protection-de-lacces-aux-fichiers-sensibles\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fredel.fr\/protection-de-lacces-aux-fichiers-sensibles\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/fredel.fr\/protection-de-lacces-aux-fichiers-sensibles\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/fredel.fr\/"},{"@type":"ListItem","position":2,"name":"Protection de l\u2019acc\u00e8s aux fichiers sensibles"}]},{"@type":"WebSite","@id":"https:\/\/fredel.fr\/#website","url":"https:\/\/fredel.fr\/","name":"Fredel","description":"Fredel agency "The Fredel Family"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/fredel.fr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Person","@id":"https:\/\/fredel.fr\/#\/schema\/person\/f93e6e36904f3f58ed59c0e78ed2c1a0","name":"fredel","url":"https:\/\/fredel.fr\/author\/fredel\/"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/fredel.fr\/wp-json\/wp\/v2\/posts\/938"}],"collection":[{"href":"https:\/\/fredel.fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fredel.fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fredel.fr\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/fredel.fr\/wp-json\/wp\/v2\/comments?post=938"}],"version-history":[{"count":0,"href":"https:\/\/fredel.fr\/wp-json\/wp\/v2\/posts\/938\/revisions"}],"wp:attachment":[{"href":"https:\/\/fredel.fr\/wp-json\/wp\/v2\/media?parent=938"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fredel.fr\/wp-json\/wp\/v2\/categories?post=938"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fredel.fr\/wp-json\/wp\/v2\/tags?post=938"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}} <!-- This website is like a Rocket, isn't it ? Performance optimized by WP Rocket. Learn more: http://wp-rocket.me - Debug: cached@1732116166 -->