PHP protect a folder

后端 未结 2 604
梦谈多话
梦谈多话 2020-12-21 02:24

I need to secure a folder. Website was done in PHP. There is an admin area with files like PDF, DOC… so; I cannot protect these files with session variable. Is there a way i

2条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-21 03:16

    You can put your files behind the viewable area(before public_html) and with a session protected download page, download the files.

    
    

    Obviously, there need to be some extra changes but that is the part you requested.

提交回复
热议问题