Hello all i am having a website in which i have many directories like members/images/emotions and other php files like index.php,login.php,profile.php... etc in the directory/folder images all the imgeas of wbsite is stored and i do not want people to look into it. currenlty when we type www.sitedomain.com index.php is shown which is ok but when we type www.sitedomain.com/images all the images link are shown i dont want any people to look into this folder . a default 404 eror page should be displayed
2条回答 默认 最新
- dongzhuonao8429 2014-04-26 16:45关注
You could add a
.htaccess
file in the folder with the following line in it:Options -Indexes
Or (if your site doesn't run on Apache or you don't have override permission)
- put an empty
index.html
file in the folder
Or
-
put an
index.php
file in the folder with the line:<?php header('Location: some-other-page.html');
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报 - put an empty
悬赏问题
- ¥15 如何实验stm32主通道和互补通道独立输出
- ¥30 这是哪个作者做的宝宝起名网站
- ¥60 版本过低apk如何修改可以兼容新的安卓系统
- ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
- ¥50 有数据,怎么建立模型求影响全要素生产率的因素
- ¥50 有数据,怎么用matlab求全要素生产率
- ¥15 TI的insta-spin例程
- ¥15 完成下列问题完成下列问题
- ¥15 C#算法问题, 不知道怎么处理这个数据的转换
- ¥15 YoloV5 第三方库的版本对照问题