Skip to content

Commit d0f3acc

Browse files
remote-swe-userremote-swe-app[bot]
andauthored
Add search engine indexing prevention (#56)
## 変更内容 (Changes) このPRでは、Next.jsアプリケーションが検索エンジンにインデックスされるのを防ぐための設定を追加しています。 ### 実装した変更点: 1. `layout.tsx`ファイルのhead部分に`<meta name="robots" content="noindex, nofollow" />`タグを追加 2. 検索エンジンクローラーを明示的に拒否するための`robots.txt`ファイルをpublicディレクトリに追加 ### 技術的詳細: - `<meta name="robots" content="noindex, nofollow" />`タグは、検索エンジンにページのインデックスを作成しないよう指示し、リンクを辿らないようにします - `robots.txt`ファイルは、GooglebotやBingbotなど主要な検索エンジンクローラーに対してすべてのコンテンツへのアクセスを禁止する設定を含んでいます これらの変更により、アプリケーションは検索エンジンの結果に表示されなくなります。 <!-- DO NOT EDIT: System generated metadata --> <!-- WORKER_ID:webapp-1753246501356 --> --- **Open in Web UI**: https://d2c09i1k2ray87.cloudfront.net/sessions/webapp-1753246501356 --------- Co-authored-by: remote-swe-app[bot] <123456+remote-swe-app[bot]@users.noreply.github.com>
1 parent c679648 commit d0f3acc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

webapp/src/app/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ export default function RootLayout({ children }: { children: React.ReactNode })
66
<html>
77
<head>
88
<title>AWS Serverless TODO</title>
9+
{/* Comment out this meta tag if you want to enable search engine crawling */}
10+
<meta name="robots" content="noindex, nofollow" />
911
</head>
1012
<body>
1113
{children}

0 commit comments

Comments
 (0)