2015年6月11日木曜日

Google Analyticsのスパム対応 nginxのスパムボットアドレス対応ファイル

  • 公開日:2015年06月11日
  • 最終更新日:2015年06月11日

記事概要


nginx用のスパムボット対策ファイル『spambot.conf』を用意しました。
最初はgithubに置くことも考えましたが、直接コードをpreタグの中に記載して公開します。コピペしてご利用ください。
また、対応スパムボットを増やした場合は、逐次更新していきます。
より詳細を理解したい人は、こちらの記事を参考にしてください。

『/etc/nginx/conf.d/spambot.conf』



# リファラスパムボットのアクセスでない場合は「0」を維持する
set $spambot 0;
 
# リファラスパムボットそれぞれの判定
if ($http_referer ~* (4webmasters.org) ) {
  set $spambot 1;
}
if ($http_referer ~* (76brighton.co.uk) ) {
  set $spambot 1;
}
if ($http_referer ~* (7makemoneyonline.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (7secretsearch.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (acads.net) ) {
  set $spambot 1;
}
if ($http_referer ~* (adcash.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (addons.mozilla.org) ) {
  set $spambot 1;
}
if ($http_referer ~* (adsensewatchdog.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (adviceforum.info) ) {
  set $spambot 1;
}
if ($http_referer ~* (aliexpress.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (amanda-porn.ga) ) {
  set $spambot 1;
}
if ($http_referer ~* (anal-acrobats.hol.es) ) {
  set $spambot 1;
}
if ($http_referer ~* (anticrawler.org) ) {
  set $spambot 1;
}
if ($http_referer ~* (b4.arcadecandy.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (b4.arcadeyum.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (b4.epicplay.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (b4.rivalgaming.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (best-seo-offer.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (best-seo-solution.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (bestwebsitesawards.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (biggestplayer.cachefly.net) ) {
  set $spambot 1;
}
if ($http_referer ~* (blackhatworth.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (blogs.forum69.info) ) {
  set $spambot 1;
}
if ($http_referer ~* (box10.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (brakehawk.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (buttons-for-website.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (buttons-for-your-website.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (buy-cheap-online.info) ) {
  set $spambot 1;
}
if ($http_referer ~* (buysellsignals.net) ) {
  set $spambot 1;
}
if ($http_referer ~* (c.brightcove.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (cenokos.ru) ) {
  set $spambot 1;
}
if ($http_referer ~* (cenoval.ru) ) {
  set $spambot 1;
}
if ($http_referer ~* (cityadspix.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (cookinggames.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (curvefever.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (cyprusbuyproperties.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (darodar.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (depositfiles-porn.ga) ) {
  set $spambot 1;
}
if ($http_referer ~* (descargar-musica-gratis.net) ) {
  set $spambot 1;
}
if ($http_referer ~* (econom.co) ) {
  set $spambot 1;
}
if ($http_referer ~* (econom.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (edakgfvwql.ru) ) {
  set $spambot 1;
}
if ($http_referer ~* (etc.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (europages.com.ru) ) {
  set $spambot 1;
}
if ($http_referer ~* (event-tracking.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (filmhill.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (flipline.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (forum20.smailik.org) ) {
  set $spambot 1;
}
if ($http_referer ~* (forum69.info) ) {
  set $spambot 1;
}
if ($http_referer ~* (free-share-buttons.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (free-social-buttons.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (freeinvaders.org) ) {
  set $spambot 1;
}
if ($http_referer ~* (friv10000000.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (games2win.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (generalporn.org) ) {
  set $spambot 1;
}
if ($http_referer ~* (Get-Free-Traffic-Now.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (girlgames.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (gobongo.info) ) {
  set $spambot 1;
}
if ($http_referer ~* (gogy.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (googlsucks.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (guardlink.org) ) {
  set $spambot 1;
}
if ($http_referer ~* (hulfingtonpost.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (humanorightswatch.org) ) {
  set $spambot 1;
}
if ($http_referer ~* (iloveitaly.ro) ) {
  set $spambot 1;
}
if ($http_referer ~* (ilovevitaly.co) ) {
  set $spambot 1;
}
if ($http_referer ~* (ilovevitaly.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (ilovevitaly.ru) ) {
  set $spambot 1;
}
if ($http_referer ~* (imasdk.googleapis.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (iminent.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (iskalko.ru) ) {
  set $spambot 1;
}
if ($http_referer ~* (kabbalah-red-bracelets.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (kallery.net) ) {
  set $spambot 1;
}
if ($http_referer ~* (kambasoft.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (Lomb.co) ) {
  set $spambot 1;
}
if ($http_referer ~* (Lombia.co) ) {
  set $spambot 1;
}
if ($http_referer ~* (lumb.co) ) {
  set $spambot 1;
}
if ($http_referer ~* (luxup.ru) ) {
  set $spambot 1;
}
if ($http_referer ~* (makemoneyonline.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (masterseek.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (meendo-free-traffic.ga) ) {
  set $spambot 1;
}
if ($http_referer ~* (morgansindall.coins.int) ) {
  set $spambot 1;
}
if ($http_referer ~* (myftpupload.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (o-o-6-o-o.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (o-o-6-o-o.ru) ) {
  set $spambot 1;
}
if ($http_referer ~* (o-o-8-o-o.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (o-o-8-o-o.ru) ) {
  set $spambot 1;
}
if ($http_referer ~* (ok.ru) ) {
  set $spambot 1;
}
if ($http_referer ~* (ourmeets.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (paparazzistudios.com.au) ) {
  set $spambot 1;
}
if ($http_referer ~* (player.pureplay.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (pogo.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (pornhub-forum.ga) ) {
  set $spambot 1;
}
if ($http_referer ~* (pornhub-forum.uni.me) ) {
  set $spambot 1;
}
if ($http_referer ~* (powitania.pl) ) {
  set $spambot 1;
}
if ($http_referer ~* (priceg.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (prodvigator.ua) ) {
  set $spambot 1;
}
if ($http_referer ~* (r-e-f-e-r-e-r.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (ranksignals.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (Ranksonic.info) ) {
  set $spambot 1;
}
if ($http_referer ~* (ranksonic.org) ) {
  set $spambot 1;
}
if ($http_referer ~* (rapidgator-porn.ga) ) {
  set $spambot 1;
}
if ($http_referer ~* (resellerclub.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (roblox.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (s.click.aliexpress.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (s3.misterwhat.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (savetubevideo.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (screentoolkit.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (search3.openobjects.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (see-your-website-here.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (semalt.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (seoanalyses.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (seoexperimenty.ru) ) {
  set $spambot 1;
}
if ($http_referer ~* (sexyteens.hol.es) ) {
  set $spambot 1;
}
if ($http_referer ~* (shahid.mbc.net) ) {
  set $spambot 1;
}
if ($http_referer ~* (sharebutton.net) ) {
  set $spambot 1;
}
if ($http_referer ~* (sharebutton.org) ) {
  set $spambot 1;
}
if ($http_referer ~* (simple-share-buttons.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (site3.free-share-buttons.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (site5.free-share-buttons.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (slftsdybbg.ru) ) {
  set $spambot 1;
}
if ($http_referer ~* (social-buttons.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (socialseet.ru) ) {
  set $spambot 1;
}
if ($http_referer ~* (srecorder.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (star61.de) ) {
  set $spambot 1;
}
if ($http_referer ~* (static.cmptch.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (static1.dmcdn.net) ) {
  set $spambot 1;
}
if ($http_referer ~* (superiends.org) ) {
  set $spambot 1;
}
if ($http_referer ~* (tasteidea.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (tetrisfriends.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (textelle.ee) ) {
  set $spambot 1;
}
if ($http_referer ~* (theguardlan.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (ticimax.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (topblogstories.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (torontoplumbinggroup.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (torture.ml) ) {
  set $spambot 1;
}
if ($http_referer ~* (totaljerkface.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (uglystat.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (vampirestat.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (vds.rightster.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (villainstat.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (vodkoved.ru) ) {
  set $spambot 1;
}
if ($http_referer ~* (waterfallscanopy.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (web.roblox.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (webmaster-traffic.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (websocial.me) ) {
  set $spambot 1;
}
if ($http_referer ~* (windstream.net) ) {
  set $spambot 1;
}
if ($http_referer ~* (inbox.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (ykecwqlixx.ru) ) {
  set $spambot 1;
}
if ($http_referer ~* (youporn-forum.ga) ) {
  set $spambot 1;
}
if ($http_referer ~* (zombiestat.com) ) {
  set $spambot 1;
}
if ($http_referer ~* (100dollars-seo.com) ) {
  set $spambot 1;
}


# 最後に403を返すif文を追加する
if ($spambot = 1) {
  return 403;
  break;
}


以上

関連記事
参考サイト

この記事がお役にたちましたらシェアをお願いします

このエントリーをはてなブックマークに追加

7 件のコメント:

  1. I do not know whether it’s just me or if everybody else encountering issues with your blog. It appears as if some of the written text within your posts are running off the screen. Can someone else please comment and let me know if this is happening to them too?

    오피

    返信削除
  2. You really make it seem so easy with your presentation but I find this topic to be really something which I think I would never understand. It seems too complicated and very broad for me.

    건전마사지

    返信削除

Related Posts Plugin for WordPress, Blogger...