Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6591641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:27:03+00:00 2026-05-25T17:27:03+00:00

I log sensitive information in a a log file lets call it mylogfile.log. This

  • 0

I log sensitive information in a a log file lets call it “mylogfile.log”. This file should in no circumstances be access from the outside/web.

I already protect it by using a .htaccess file but what i would like some extra safeguard like using a fileextension that is protected by the system. Is there any such?

The reason for the extra security is that this webapp is distrubuted to clients that could change or remove the .htaccess file. Also .htaccess override needs to be enabled in Apache.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T17:27:04+00:00Added an answer on May 25, 2026 at 5:27 pm

    You should put it outside of the document root.

    If /var/www/your-site.com/public matches the URI your-site.com (public/index.html –> your-site.com/index.html etc), then log files will not be readable if you place them in /var/www/your-site.com/logs

    When distributing an app like this, I would always make sure that you, given your limited and controlled space, do not use your “base folder” as the document root of the webserver, just to get some privacy around it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How would you go about hiding sensitive information from going into log files? Yes,
When microsofts database administrators access the sensitive information from a database, do the create
Should log classes open/close a log file stream on each write to the log
I have a stored procedure that retrieves sensitive information from an SQL Server 2008
Rails provides filter_parameter_logging to filter sensitive parameters from the rails log. If you have
My log file is: Wed Nov 12 blah blah blah blah cat1 Wed Nov
My log file in SQL Server used up all the space on my disk.
I have an application that will contain information that is sensitive to a user.
Log.d(TAG, Build.VERSION_CODES.ICE_CREAM_SANDWICH: + Build.VERSION_CODES.ICE_CREAM_SANDWICH); I write code like this, I used the sdk4.0 to
git log lists all commits, from all branches that have been merged into HEAD.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.