Skip to content

Commit

Permalink
クローラー拒否の設定を追加する (#935)
Browse files Browse the repository at this point in the history
* 全ページにクローラー拒否用のmetaタグを追加。

* robots.txtを追加。

* User-agentごとにルールを記載。

---------

Co-authored-by: Fumika Koyama <[email protected]>
  • Loading branch information
fkoyama and fkoyama authored Mar 18, 2024
1 parent 5dfd416 commit 035d1a8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions documents/overrides/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{% extends "base.html" %}
{% block extrahead %}
<meta name="robots" content="noindex, nofollow">
{% endblock %}
11 changes: 11 additions & 0 deletions iis-files/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
User-agent: *
Disallow: /

User-agent: AdsBot-Google
Disallow: /

User-agent: AdsBot-Google-Mobile
Disallow: /

User-agent: Mediapartners-Google
Disallow: /

0 comments on commit 035d1a8

Please sign in to comment.