Skip to content

Commit 3c88e09

Browse files
committed
add robots.txt
Signed-off-by: rishichawda <[email protected]>
1 parent 58d5e46 commit 3c88e09

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

public/robots.txt

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Allow all crawlers to access the site for SEO
2+
User-agent: *
3+
Allow: /
4+
5+
# Block all bots from scraping images
6+
User-agent: *
7+
Disallow: /gallery/
8+
Disallow: *.jpg
9+
Disallow: *.jpeg
10+
Disallow: *.png
11+
Disallow: *.gif
12+
Disallow: *.webp
13+
Disallow: *.avif
14+
Disallow: *.svg
15+
16+
# Allow good bots (Google, Bing, etc.) to index pages with images
17+
User-agent: Googlebot
18+
User-agent: Googlebot-Image
19+
User-agent: Bingbot
20+
Allow: /
21+
22+
# Block image-specific crawlers
23+
User-agent: Googlebot-Image
24+
Disallow: /gallery/
25+
Disallow: *.jpg
26+
Disallow: *.jpeg
27+
Disallow: *.png
28+
Disallow: *.gif
29+
Disallow: *.webp
30+
Disallow: *.avif
31+
32+
# Sitemap location
33+
Sitemap: https://rishikc.com/sitemap-index.xml

0 commit comments

Comments
 (0)