全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 10044|回复: 34

[nginx] 求人帮忙做lnmp防盗链-每天被盗500G流量

[复制链接]
发表于 2011-3-6 22:50:46 | 显示全部楼层 |阅读模式
Rt,来自百毒和搜狗等各种网站的盗链,每秒并发500+,每天500G+流量。急求人帮忙做防盗链,在下感激不尽!
网站探针:www.fbank.in/fbankwebtest.php
联系方式:论坛PM 邮箱qiqibian@hotmail.com

[ 本帖最后由 qiqibian 于 2011-3-6 22:51 编辑 ]
发表于 2011-3-6 22:53:37 | 显示全部楼层
屏蔽他域名,,
发表于 2011-3-6 22:54:45 | 显示全部楼层
不用LNMP~
发表于 2011-3-6 22:57:11 | 显示全部楼层
你这站放在哪个vps啊
 楼主| 发表于 2011-3-6 22:59:09 | 显示全部楼层

回复 4# 的帖子

Thrustvps 最高配
发表于 2011-3-6 23:02:11 | 显示全部楼层

评分

参与人数 1威望 +10 收起 理由
qiqibian + 10 能帮忙设置吗?

查看全部评分

发表于 2011-3-6 23:06:59 | 显示全部楼层
你不会敢让我ssh上去吧
发表于 2011-3-6 23:10:36 | 显示全部楼层
原帖由 嫂子抱紧我 于 2011-3-6 23:02 发表
NGINX 中文站 » Nginx防盗链详细设置
请给分



好難的樣子
发表于 2011-3-6 23:11:56 | 显示全部楼层
我贴下我的防盗链设置好了,不一定管用。
  1. server {
  2. listen 0.0.0.0:80;
  3. server_name www.google.com google.com;
  4. access_log /var/log/httpd/domains/google.com.bytes bytes;
  5. access_log /var/log/httpd/domains/google.com.log combined;
  6. root  /home/admin/domains/google.com/public_html/;
  7.   location / {
  8.     try_files $uri @backend;
  9.     location ~* \.(jpg|txt|7z|jpeg|gif|png|ico|css|zip|tgz|gz|xml|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js|mp4|mp3|flv)$ {
  10.      valid_referers none blocked google.com www.google.com;
  11.      if ($invalid_referer) {
  12.          return 403;
  13.         }
  14.     }
  15.   }
  16.   location @backend {
  17.     internal;
  18.     proxy_pass http://0.0.0.0:81;
  19.     include proxy.inc;
  20.   }
  21.   location ~ .*\.(php|jsp|cgi|pl|py)?$ {
  22.     proxy_pass http://0.0.0.0:81;
  23.     include proxy.inc;
  24.   }
  25.   location ~ .*\.(ftpquota|htaccess|htpasswd|asp|aspx|jsp|asa|mdb)?$ {
  26.     deny all;
  27.   }
  28. }
复制代码
 楼主| 发表于 2011-3-6 23:12:41 | 显示全部楼层

回复 7# 的帖子

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

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-6 19:36 , Processed in 0.135329 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表