http://apps.hi.baidu.com/share/detail/2431193
可以参考这个文件我要写的内容是屏蔽某个网站所有页面对我站内资源的访问httpd.inide
请问这个应该如何写比如说屏蔽abc.com 和 img.abc.com的

解决方案 »

  1.   

    //只允许或禁止某个域名进行目录访问<Directory "d:/Apache Group/Apache2/cgi-bin"> //访问的目录
        Order Deny,Allow
        Deny from abc.com /img.abc.com //屏蔽某个域名
        Allow from apache.org  //允许某个域名
    </Directory>
    统一在网站根目录下的创建 .htaccess  文件在其中添加RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$ 
    RewriteRule .*\.(gif|jpg|gif|swf)$ http://www.abc.com/about/nolink.png [R,NC] 这样盗链的请求会被重定向到一个错误页面,从而减少下载带给服务器的压力
      

  2.   

    windows下apache安装文件的 conf/httpd.conf<Directory "d:/Apache Group/Apache2/cgi-bin"> //访问的目录
      Order Deny,Allow
      Deny from abc.com /img.abc.com //屏蔽某个域名
      Allow from apache.org //允许某个域名
    </Directory>
      

  3.   

    关键问题我是iis  我的伪静态文件是httpd.ini