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

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

make wp-content/debug.log inaccessible

3 Posts
2 Users
1 Reactions
1,877 Views
(@love-bird)
New Member Customer
Joined: 4 years ago
Posts: 2
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
  [#3]

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: 4 years ago
Posts: 13
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 
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: 4 years ago
Posts: 2
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@ankitbnl406 Thanks fixed!



   
ReplyQuote