doudg60800 2013-09-15 11:54
浏览 24
已采纳

拒绝访问其中的文件夹和内容,位于我的网站文件夹中

In short, I don't want a user to access folders, or the data or files in it.

I searched a bit, and I came up with deny from all, but it is not working when I put it on ftp; but on localhost its working.

I write the below given code in my upload folder:

# .htaccess mod_rewrite
RewriteEngine On

deny from all
  • 写回答

1条回答 默认 最新

  • dqm4977 2017-05-31 06:11
    关注

    Resolved:

    Just put an index.php file in the folder with the code:

    <?php
    header("Location: ../");
    ?>
    

    It will through the user out of that folder.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题