1. 论坛系统升级为Xenforo,欢迎大家测试!
    排除公告

Apache 实现防盗链

本帖由 laogui2005-10-05 发布。版面名称:主机讨论

  1. laogui

    laogui Administrator
    管理成员

    注册:
    2005-08-30
    帖子:
    15,216
    赞:
    35
    红色部分

    代码:
    <VirtualHost *:80>
        ServerAdmin [email protected]
        DocumentRoot D:/www/www.chinahtml.com
        ServerName www.chinahtml.com
        ServerAlias chinahtml.com
        ServerAlias www.chinahtml.net
        ServerAlias chinahtml.net
        ServerAlias www.chinahtml.cn
        ServerAlias chinahtml.cn
        ErrorDocument 404 http://www.chinahtml.com/error.html
        SetEnvIfNoCase Referer "^http://www.chinahtml.com" local_ref=1
        SetEnvIfNoCase Referer "^http://chinahtml.com" local_ref=1
        SetEnvIfNoCase Referer "^http://www.chinahtml.net" local_ref=1
        SetEnvIfNoCase Referer "^http://chinahtml.net" local_ref=1
        <FilesMatch "\.(gif|jpb|png|css|js|swf)">
            Order Allow,Deny
            Allow from env=local_ref
        </FilesMatch>
    </VirtualHost>
     
  2. yeshou

    yeshou New Member

    注册:
    2005-09-06
    帖子:
    7,067
    赞:
    34
    看不懂 怎么办
     
  3. 宇杰

    宇杰 New Member

    注册:
    2005-08-31
    帖子:
    678
    赞:
    5
    看不懂啊

    交钱,叫鬼哥教你
     
  4. langyufeng

    langyufeng New Member

    注册:
    2005-09-27
    帖子:
    33
    赞:
    0
    不错,呵呵
     
  5. 老林

    老林 New Member

    注册:
    2005-09-06
    帖子:
    10,580
    赞:
    36
  6. yeshou

    yeshou New Member

    注册:
    2005-09-06
    帖子:
    7,067
    赞:
    34
    还好我用cpanel 不懂也无所谓 cpanel的防盗链够用了
     
  7. wm_chief

    wm_chief New Member

    注册:
    2005-09-05
    帖子:
    17,890
    赞:
    46
  8. alpha

    alpha New Member

    注册:
    2005-12-15
    帖子:
    683
    赞:
    0
    绝对好东西。