分享

写回答

发帖

[提问] GD LINUX htaccess设置图片防盗链写发后搜索引擎收录大量下降

GoDaddy GoDaddy 626 人阅读 | 3 人回复

发表于 2011-3-1 08:57:25 | 显示全部楼层 |阅读模式

  1. # BEGIN WordPress
  2. <IfModule mod_rewrite.c>
  3. RewriteEngine On
  4. RewriteBase /
  5. RewriteCond %{REQUEST_FILENAME} !-f
  6. RewriteCond %{REQUEST_FILENAME} !-d
  7. RewriteRule . /index.php [L]
  8. RewriteBase /wp-content/uploads/
  9. RewriteCond %{HTTP_REFERER} !^$ [NC]
  10. RewriteCond %{HTTP_REFERER} !本站.com [NC]
  11. RewriteCond %{HTTP_REFERER} !google.co.id [NC]
  12. RewriteCond %{HTTP_REFERER} !google.com [NC]
  13. RewriteCond %{HTTP_REFERER} !bing.com [NC]
  14. RewriteCond %{HTTP_REFERER} !yahoo.com [NC]
  15. RewriteCond %{HTTP_REFERER} !yahoo.com.cn [NC]
  16. RewriteCond %{HTTP_REFERER} !yahoo.cn [NC]
  17. RewriteCond %{HTTP_REFERER} !baidu.com [NC]
  18. RewriteCond %{HTTP_REFERER} !google.de [NC]
  19. RewriteCond %{HTTP_REFERER} !google.co.jp [NC]
  20. RewriteCond %{HTTP_REFERER} !google.nl [NC]
  21. RewriteCond %{HTTP_REFERER} !google.com.au [NC]
  22. RewriteCond %{HTTP_REFERER} !google.com.sa [NC]
  23. RewriteCond %{HTTP_REFERER} !google.co.uk [NC]
  24. RewriteCond %{HTTP_REFERER} !google.fr [NC]
  25. RewriteCond %{HTTP_REFERER} !google.com.br [NC]
  26. RewriteCond %{HTTP_REFERER} !google.com.mx [NC]
  27. RewriteCond %{HTTP_REFERER} !google.com.tw [NC]
  28. RewriteCond %{HTTP_REFERER} !google.com.eg [NC]
  29. RewriteCond %{HTTP_REFERER} !google.com.hk [NC]
  30. RewriteCond %{HTTP_REFERER} !google.se [NC]
  31. RewriteCond %{HTTP_REFERER} !google.fi [NC]
  32. RewriteCond %{HTTP_REFERER} !google.com.ph [NC]
  33. RewriteCond %{HTTP_REFERER} !google.ru [NC]
  34. RewriteCond %{HTTP_REFERER} !google.co.kr [NC]
  35. RewriteCond %{HTTP_REFERER} !google.es [NC]
  36. RewriteCond %{HTTP_REFERER} !pch.com [NC]
  37. RewriteCond %{HTTP_REFERER} !google.be [NC]
  38. RewriteCond %{HTTP_REFERER} !google.ro [NC]
  39. RewriteCond %{HTTP_REFERER} !google.com.my [NC]
  40. RewriteCond %{HTTP_REFERER} !google.co.in [NC]
  41. RewriteCond %{HTTP_REFERER} !google.pl [NC]
  42. RewriteCond %{HTTP_REFERER} !google.com.tr [NC]
  43. RewriteCond %{HTTP_REFERER} !google.co.th [NC]
  44. RewriteCond %{HTTP_REFERER} !google.ch [NC]
  45. RewriteCond %{HTTP_REFERER} !google.co.nz [NC]
  46. RewriteCond %{HTTP_REFERER} !showmelinks.eu [NC]
  47. RewriteCond %{HTTP_REFERER} !google.dk [NC]
  48. RewriteCond %{HTTP_REFERER} !google.com.pk [NC]
  49. RewriteCond %{HTTP_REFERER} !google.com.ar [NC]
  50. RewriteRule .*\.(gif|jpg|png|rar)$ http://suzhouroom.com/301/301.png [L] </IfModule>
  51. # END WordPress
复制代码
我做的是英文站,之前Google搜索都很好的,这样写没有问题吧,但是最近发现Google搜录只剩两三条,yahoo一个都没有。只剩下bing可以翻几页,郁闷了。

回答|共 3 个

nojay

发表于 2011-3-1 09:02:58 | 显示全部楼层

程序是WP
我只希望搜索引擎能先是图片,其他链接全部防止。

add.c

发表于 2011-3-1 09:16:58 | 显示全部楼层

顶起看看

lwbo1987

发表于 2011-3-1 09:18:44 | 显示全部楼层

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

本版积分规则