How to prevent PHP files from being downloaded? And what are some ways someone can download them?

前端 未结 5 1141
挽巷
挽巷 2020-12-05 03:50

How do i prevent php files from being downloaded \"illegally\" like through the browser. And what are some ways someone can use to download the php files?

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-05 04:03

    You never download the php file from a web server running php. You can donwload the HTML delivered from the php like in this answer. You don't get php script you get HTML + JavaScript (if some)

     
    

提交回复
热议问题