我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

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

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

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.

近期文章

  • 如何在html5网站和wbeserver之间使用ssl建立安全连接
  • 从另一个php文件调用函数
  • 当我在php中发布时传递空值
  • 使用多个ajax请求删除帐户
  • 如何从mysql搜索中的3个表中获取数据
  • 严格的标准:只有变量才能通过引用传递 - 注册表
  • 使用nginx基于查询变量提供静态或动态文件
  • 是否可以在不加载页面的情况下刷新div?
  • 嵌套While While with mysql_fetch_array给出空白结果
  • 将项目符号和样式插入openTBS中的[show。]条目
  • 保存其他列的数据
  • 如何使用php在cURL中显示href
  • 使用jquery函数重置PHP $ _SESSION数组
  • 如何使用按钮将短代码插入wordpress
  • Google将重写的网址记录为多个网址
  • CakePHP containsables - 向后工作
  • 从SQL创建图表
  • 从数据库获取所有数据并对客户端进行排序,这是最佳还是理想?
  • wordpress登录时显示错误消息
  • 需要获取特定月份中所有日期的列表

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华