raksmart活动促销

分享

写回答

发帖

[求助]Bluehost 独立IP限制目录浏览

BlueHost BlueHost 1549 人阅读 | 4 人回复

发表于 2012-3-11 13:11:55 | 显示全部楼层 |阅读模式

Bluehost 独立IP虚拟主机通过.htaccess 限制目录浏览

Options All -Indexes


加了这句后第一次通过IP浏览目录会有个错误提示.也就是达到了我要的效果.

错误:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@aaaaa.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Apache Server at xxx.xxx.xxx.xxxPort 80


但是再刷新后就又可以通过 xxx.xxx.xxx.xxx/abc来浏览子目录的文件(子目录是我的独立网站,因为我一个空间放了几个网站)


请教怎么操作才能让Bluehost不自动修改我的.htaccess


# For security reasons, Option all cannot be overridden.
#Options All -Indexes
Options ExecCGI Includes IncludesNOEXEC SymLinksIfOwnerMatch -Indexes


这是修改后的结果

回答|共 4 个

vipoks

发表于 2012-3-11 13:30:22 | 显示全部楼层

Index manager 里面设置No Indexing 好像是没有效果的xxx.xxx.xxx.xxx/abc   还是可以浏览子目录.

主要就是想实现通过IP不可以用来访问子目录.

子目录是独立网站.
回复 支持 反对

使用道具 举报

vipoks

发表于 2012-3-11 13:34:14 | 显示全部楼层

QQ截图20120311133342.gif
RAKSmart
回复 支持 反对

使用道具 举报

vipoks

发表于 2012-3-11 13:36:42 | 显示全部楼层

public_html   默认的好像就是No Indexing

而我通过xxx.xxx.xxx.xxx/abc   还是可以浏览子目录.

Index manager 里面设置No Indexing 是不让搜索引擎抓取的?而不是禁止浏览目录的?
可能我没理解.

有高人请指点..感激不尽.
回复 支持 反对

使用道具 举报

20111208sbd

发表于 2012-3-12 09:36:11 | 显示全部楼层

vipoks 发表于 2012-3-11 01:30 PM
Index manager 里面设置No Indexing 好像是没有效果的xxx.xxx.xxx.xxx/abc   还是可以浏览子目录.

主要就 ...

好像没有办法阻止ip访问子目录。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则