[英]I'm trying to prevent access images folder on my the website with .htaccess
if .htaccess file is not working than you can add index.html file in your folder with content of forbidden access, while anyone open's that url than index.html file will run.如果 .htaccess 文件不起作用,那么您可以将 index.html 文件添加到您的文件夹中,其中包含禁止访问的内容,而任何人打开的那个 url 都将运行,而不是 index.html 文件。 So your folder is prevent from direct use.
所以你的文件夹是禁止直接使用的。
Hope this will helps you.希望这会帮助你。
在图像文件夹中创建 .htaccess 文件,即http://192.168.1.55/onlineshop/images/.htaccess并在 .htaccess 文件中添加以下代码
Deny from all
使用以下内容在该文件夹中创建 .htaccess。
Deny from all
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.