<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									make wp-content/debug.log inaccessible - Wordpress Website				            </title>
            <link>https://ankitsudhera.com/forum/wordpress-website/make-wp-content-debug-log-inaccessible/</link>
            <description>Ankit Sudhera Portfolio Website Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Tue, 18 Aug 2026 12:09:21 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: make wp-content/debug.log inaccessible</title>
                        <link>https://ankitsudhera.com/forum/wordpress-website/make-wp-content-debug-log-inaccessible/#post-5</link>
                        <pubDate>Wed, 03 Aug 2022 09:20:46 +0000</pubDate>
                        <description><![CDATA[@ankitbnl406 Thanks fixed!]]></description>
                        <content:encoded><![CDATA[<p>@ankitbnl406 Thanks fixed!</p>]]></content:encoded>
						                            <category domain="https://ankitsudhera.com/forum/wordpress-website/">Wordpress Website</category>                        <dc:creator>Love Bird</dc:creator>
                        <guid isPermaLink="true">https://ankitsudhera.com/forum/wordpress-website/make-wp-content-debug-log-inaccessible/#post-5</guid>
                    </item>
				                    <item>
                        <title>RE: make wp-content/debug.log inaccessible</title>
                        <link>https://ankitsudhera.com/forum/wordpress-website/make-wp-content-debug-log-inaccessible/#post-4</link>
                        <pubDate>Wed, 03 Aug 2022 09:12:49 +0000</pubDate>
                        <description><![CDATA[Posted by: @love-bird 
My site was infected with a malware, after restore a backup and run a scan using Wordfence, it mentions:
/wp-content/debug.log is publicly accessible and may expose ...]]></description>
                        <content:encoded><![CDATA[<blockquote data-userid="8" data-postid="3" data-mention="love-bird">
<div class="wpforo-post-quote-author"><strong> Posted by: @love-bird </strong></div>
<p>My site was infected with a malware, after restore a backup and run a scan using Wordfence, it mentions:</p>
<p>/wp-content/debug.log is publicly accessible and may expose source code or sensitive information about your site</p>
<p>Can you please help me to make wp-content/debug.log inaccessible?</p>
</blockquote>
<p>Please try creating a<span> </span><em>.htaccess</em><span> </span>file in the<span> </span><em>“wp-content”</em><span> </span>directory (if it is not there already) and add the following rules into it:</p>
<p> </p>
<pre contenteditable="false"><code>&lt;Files "debug.log"&gt;<br />
Order Allow,Deny<br />
Deny from all<br />
&lt;/Files&gt;</code></pre>
<p> </p>
<p>Hope this helps. Let me know if it works for you. Thanks!</p>
<p>Kind regards,</p>
<p>Ankit</p>]]></content:encoded>
						                            <category domain="https://ankitsudhera.com/forum/wordpress-website/">Wordpress Website</category>                        <dc:creator>ankitbnl406</dc:creator>
                        <guid isPermaLink="true">https://ankitsudhera.com/forum/wordpress-website/make-wp-content-debug-log-inaccessible/#post-4</guid>
                    </item>
				                    <item>
                        <title>make wp-content/debug.log inaccessible</title>
                        <link>https://ankitsudhera.com/forum/wordpress-website/make-wp-content-debug-log-inaccessible/#post-3</link>
                        <pubDate>Wed, 03 Aug 2022 09:08:26 +0000</pubDate>
                        <description><![CDATA[My site was infected with a malware, after restore a backup and run a scan using Wordfence, it mentions:
/wp-content/debug.log is publicly accessible and may expose source code or sensitive...]]></description>
                        <content:encoded><![CDATA[<p>My site was infected with a malware, after restore a backup and run a scan using Wordfence, it mentions:</p>
<p>/wp-content/debug.log is publicly accessible and may expose source code or sensitive information about your site</p>
<p>Can you please help me to make wp-content/debug.log inaccessible?</p>]]></content:encoded>
						                            <category domain="https://ankitsudhera.com/forum/wordpress-website/">Wordpress Website</category>                        <dc:creator>Love Bird</dc:creator>
                        <guid isPermaLink="true">https://ankitsudhera.com/forum/wordpress-website/make-wp-content-debug-log-inaccessible/#post-3</guid>
                    </item>
							        </channel>
        </rss>
		