Website structure security risks


I am curious if it is a security risk to keep internal files within the same level of the accessible directory. I am using Plesk to manage my server.

Plesk sets up the directory structure as such
  1. vhost
      1. error_docs
      2. http
      3. logs

Within the directory, the http directory is accessible to the public via

i have added additional directories within the directory to keep everything in the same spot. The additional folders contain sensitive information.

I know that these folders are not directly accessible to standard users but im curious if i should move them up the directory hierarchy so i only have the public http directory.  Or is this something i dont have to even worry about
J NUnicorn wranglerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David Johnson, CD, MVPOwnerCommented:
I would, what is to stop someone from guessing the directory name.. Also not all web crawlers will respect the robots.txt and index everything they can access
J NUnicorn wranglerAuthor Commented:
Spiders cannot index the folders because they are in the same directory level as the website

  1. htttp <- 
  2. include <- would return a 404 error
  3. functions
  4. files
  5. layouts
Phil PhillipsDevOps ArchitectCommented:
Ahh, so your web root folder is ""?  In that case, the other directories are safe from direct web access from the outside world (short of a some kind of vulnerability, but it's pretty much no different than putting them elsewhere on the file system).

Though, depending on the type of sensitive information (i.e. customer data, etc), you wouldn't want that sitting on a publicly accessible server in the first place.  But, judging from the directory structure, it looks like log files and source code, so I'd say it's fine how it is.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.