Security: moving files and folders out of the public directory

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
srumberg
Posts: 41
Joined: Thu Feb 07, 2013 11:33 am

Security: moving files and folders out of the public directory

Post by srumberg »

Version of script: 3.2.2
What terms did you try when SEARCHING for a solution: public folder, non-public, security

Currently, all my HESK files are in the /public_html folder. For security, I would like to move as many files and folder as possible to a non-publicly accessible location, outside of the public web folder.

Can this be done with the current code base? If not, would accomplishing this require significant modification to the code, or would the required modifications be relatively minor?

For example, my current set up is:

Code: Select all

/public_html
     /mysite
          /support   <--- HESK's root folder
               index.php
               /admin
               /attachments
               /cache
               /cron
               /css
               /inc
               /js
               /language
               /theme

I would like the file arrangement to be:

Code: Select all

/non_public
     /mysite
          /support   <--- HESK's root folder for NON-publicly accessible files
               /admin
               /attachments
               /cache
               /cron
               /inc
               /language
               /theme

/public_html
     /mysite
          /support   <--- HESK's root folder, publicly-accessible files only
               index.php
               /css
               /js
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Re: Security: moving files and folders out of the public directory

Post by Klemen »

That is not possible with the current set up and would require a substantial code rewrite.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
srumberg
Posts: 41
Joined: Thu Feb 07, 2013 11:33 am

Re: Security: moving files and folders out of the public directory

Post by srumberg »

Thank you, Klemen
Post Reply