0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

robots.txt でクローラーのアクセスを制限する

Posted at

Apache2.4 のアクセスログが次のような状況でした。

$ grep SemrushBot access*.log | wc
   6552   98280 3790927

$ grep MJ12bot access*.log | wc
   6185   92775 2139285

$ grep AhrefsBot access*.log | wc
  16802  252030 6534579

$ grep BLEXBot access*.log | wc
   3798   56970 1035560

そこで、robots.txt に次を加えました。

robots.txt
User-agent: SemrushBot
Disallow: /

User-agent: MJ12bot
Disallow: /

User-agent: AhrefsBot
Disallow: /

User-agent: BLEXBot
Disallow: /
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?