duannuo4620 2014-10-16 21:35
浏览 16
已采纳

保护您网站的php文件的最佳方法[关闭]

I have some ideas to solve this situation, but still wanted to ask someone with more experience.

I've created an Android App that makes requests to some URL. In this URL I would also like to have the landing page of my app. Howevere, I don't want people to enter to my folders where I process the requests (I have there some interface to test my app). When I protect this folder with a password via cPanel, the users are not avaible to connect with my php files and download the data. What is the best way to handle this? Should I have two URL (one for the landing page - one for the backend)? Should I not create any link to my backend files and not allow Google to crawl them? Should I add a password to this folder and insert the Username and Password in my client?

Thanks!

  • 写回答

2条回答 默认 最新

  • douzhang3898 2014-10-16 21:41
    关注

    either add .htaccess file here is apache link how to configure it or add empty index.html or index.php files in each folder.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥50 请教 麒麟系统挂载怎么安装
  • ¥15 如何在ns3中实现路径的自由切换
  • ¥20 SpringBoot+Vue3
  • ¥15 IT从业者的调查问卷
  • ¥65 LineageOs-21.0系统编译问题
  • ¥30 关于#c++#的问题,请各位专家解答!
  • ¥15 App的会员连续扣费
  • ¥15 不同数据类型的特征融合应该怎么做
  • ¥15 用proteus软件设计一个基于8086微处理器的简易温度计
  • ¥15 用联想小新14Pro