Skip to main content
ElizabethGailLittle
Inspiring
Apr 23, 2021 9:47 PM UTC
Answered

Security

I have written php pages which allow an editor to upload files to the host and to view the files in a selected folder and to copy, move, or delete individual files.  This obviously gives a great deal of power to the user.  Right now I'M using them for convenience.  I did this so that when I am no longer maintaining a non-profit site that the board can designate someone else to maintain the site until they come up with an alternative.

 

In the meantime this is a big risk.  I have to have the php files in the public_html directory because all the file functions need to start from the root.  Is there any suggestion as to how I can make sure that no one other than someone given the authority can accesss these functions?  I can certainly require a secure login, but is it possible to mark files as hidden?  

 

Your advice is always appreciated.

This topic is closed to new replies. Start a new post to keep the conversation going.
Nancy OShea
Nancy OSheaCorrect answer
Community Expert
Apr 23, 2021 10:20 PM UTC

Not sure what you're asking.

Security begins at the server/hosting level.  Assuming the server is well managed with regular security patches and nobody but the admin has access to your backend CMS & scripts, what are your concerns?

 

 

 

Nancy O'Shea— Product User & Community Expert

3 replies

B i r n o u
Legend
Apr 24, 2021 11:44 AM UTC

have you looked at htaccess... you can protect either  by password, by IP, by filetype, folder case, and so on... you can also serve files differently depending on profil and so on... and it is at a lower level than PHP

 

Translate
BenPleysier
Community Expert
Community Expert
Apr 23, 2021 10:38 PM UTC

The cause of the problem "Right now I'M using them for convenience."

Remove the caise, gone problem.

Translate
Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Nancy OShea
Community Expert
Nancy OSheaCommunity ExpertCorrect answer
Community Expert
Apr 23, 2021 10:20 PM UTC

Not sure what you're asking.

Security begins at the server/hosting level.  Assuming the server is well managed with regular security patches and nobody but the admin has access to your backend CMS & scripts, what are your concerns?

 

 

 

Translate
Nancy O'Shea— Product User & Community Expert