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 7739189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:27:36+00:00 2026-06-01T08:27:36+00:00

From a book A common convention is to use .inc for all include files.

  • 0

From a book

A common convention is to use .inc for all include files. However,
this potentially exposes you to a major security risk because most
servers treat .inc files as plain text. Let’s say an include file
contains the username and password to your database, and you store the
file with an .inc filename extension within your website’s root
folder. Anyone who discovers the name of the file can simply type the
URL in a browser address bar, and the browser will obligingly display
all your secret details!

But i found there are some .inc files in the include file in a programme eg:drupal and some other programmes,why?how they prevent the inc file from being accessed from the browser?

  • 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-06-01T08:27:37+00:00Added an answer on June 1, 2026 at 8:27 am

    .htaccess can be set to not allow web user requests to resources.

    See this link

    and in particular the section reading…

    <Files ~ "\.(inc)$">
    order allow,deny
    deny from all
    </Files>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

From book Java Concurrency in Practice page 26: You can use volatile variables only
This is an example from a book, a bit modified. It seems like sessions
I get this code from a book but i could not get it work.
I have been reviewing algorithms, this is question from Anany Levitin's algo book.. You
From the book Groovy and Grails recipes I'm using the following code snippet: String
From the book Agile Web Development With Rails class Order < ActiveRecord::Base named_scope :last_n_days,
Excerpt from a book: A float value consists of a 24-bit signed mantissa and
How to access Offline Address Book (from exchange server/outlook configured to exchange machine) using
Here's an excerpt from a book I'm reading about application design with MVC: Ideally,
Here is a excise from The book Algorithm Design Manual . In the bin-packing

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.