Skip to content

Commit 5fbc879

Browse files
committed
Add robots.txt and sitemap.xml for SEO
1 parent 2335856 commit 5fbc879

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

examples/official-site/robots.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
User-agent: *
2+
Disallow: /examples/authentification/ # Block the folder "authentification" to avoid blocking by password
3+
Disallow: /examples/hash_password.sql # Block access to specific sensitive SQL files like this
4+
Disallow: /Dockerfile # Block access to Dockerfile
5+
6+
Allow: / # Allow access to all public-facing SQL-generated pages
7+
8+
Sitemap: https://sql.datapage.app/sitemap.xml

examples/official-site/sitemap.xml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
3+
<url>
4+
<loc>https://sql.datapage.app/</loc>
5+
<lastmod>2024-10-10</lastmod>
6+
<priority>1.00</priority>
7+
</url>
8+
<url>
9+
<loc>https://sql.datapage.app/component.sql</loc>
10+
<lastmod>2024-10-10</lastmod>
11+
<priority>0.80</priority>
12+
</url>
13+
<url>
14+
<loc>https://sql.datapage.app/documentation.sql</loc>
15+
<lastmod>2024-10-10</lastmod>
16+
<priority>0.80</priority>
17+
</url>
18+
<url>
19+
<loc>https://sql.datapage.app/your-first-sql-website/</loc>
20+
<lastmod>2024-10-10</lastmod>
21+
<priority>0.80</priority>
22+
</url>
23+
</urlset>

0 commit comments

Comments
 (0)