Ankit Sudhera Portfolio Website

Programming is my Passion
Provide Training is my skill
Quality and Commitment is my Life's Goal
Quality and Commitment is my Life's Goal
Programming is my Passion
Provide Training is my skill
Quality and Commitment is my Life's Goal
Quality and Commitment is my Life's Goal
Programming and Support is my Quality
Programming and Support is my Quality
Programming and Support is my Quality

Forum

make wp-content/deb...
 
Notifications
Clear all

make wp-content/debug.log inaccessible

3 Posts
2 Users
1 Reactions
735 Views
(@love-bird)
New Member Customer
Joined: 3 years ago
Posts: 2
Topic starter  

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 information about your site

Can you please help me to make wp-content/debug.log inaccessible?


   
Quote
(@ankitbnl406)
Member Admin
Joined: 2 years ago
Posts: 7
 
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 source code or sensitive information about your site

Can you please help me to make wp-content/debug.log inaccessible?

Please try creating a .htaccess file in the “wp-content” directory (if it is not there already) and add the following rules into it:

 

<Files "debug.log">
Order Allow,Deny
Deny from all
</Files>

 

Hope this helps. Let me know if it works for you. Thanks!

Kind regards,

Ankit


   
Love Bird reacted
ReplyQuote
(@love-bird)
New Member Customer
Joined: 3 years ago
Posts: 2
Topic starter  

@ankitbnl406 Thanks fixed!


   
ReplyQuote