# robots.txt for ShortenedUrl - Optimized for Google # This file will be copied to dist during build # ============================================ # GOOGLE OPTIMIZATION - Priority Rules First # ============================================ # Googlebot (Desktop) User-agent: Googlebot Allow: / # Disallow private/admin pages Disallow: /admin/ Disallow: /dashboard/ Disallow: /change-password/ Disallow: /reset-password/ Disallow: /forgot-password/ Disallow: /api/ # Note: Individual short URL codes are handled via noindex meta tags # We allow them here so Google can crawl preview pages for social sharing # Allow public pages explicitly Allow: /contact Allow: /terms Allow: /privacy Allow: /login Allow: /signup # Allow static assets for better indexing Allow: /assets/ Allow: /*.css$ Allow: /*.js$ Allow: /*.png$ Allow: /*.jpg$ Allow: /*.jpeg$ Allow: /*.gif$ Allow: /*.svg$ Allow: /*.ico$ Allow: /*.woff$ Allow: /*.woff2$ Allow: /*.ttf$ Allow: /*.eot$ Crawl-delay: 0 # Googlebot-Image (for image indexing) User-agent: Googlebot-Image Allow: /assets/ Allow: /*.png$ Allow: /*.jpg$ Allow: /*.jpeg$ Allow: /*.gif$ Allow: /*.svg$ Allow: /*.webp$ Disallow: / # Googlebot-Mobile (for mobile-first indexing) User-agent: Googlebot-Mobile Allow: / Disallow: /admin/ Disallow: /dashboard/ Disallow: /change-password/ Disallow: /reset-password/ Disallow: /forgot-password/ Disallow: /api/ # Note: Individual short URL codes are handled via noindex meta tags Crawl-delay: 0 # ============================================ # OTHER SEARCH ENGINES # ============================================ # Bingbot User-agent: Bingbot Allow: / Disallow: /admin/ Disallow: /dashboard/ Disallow: /change-password/ Disallow: /reset-password/ Disallow: /forgot-password/ Disallow: /api/ # Note: Individual short URL codes are handled via noindex meta tags Crawl-delay: 0 # ============================================ # GENERAL RULES (All other bots) # ============================================ User-agent: * Allow: / # Disallow private/admin pages Disallow: /admin/ Disallow: /dashboard/ Disallow: /change-password/ Disallow: /reset-password/ Disallow: /forgot-password/ Disallow: /api/ # Note: Individual short URL codes are handled via noindex meta tags # Allow static assets Allow: /assets/ Allow: /*.css$ Allow: /*.js$ Allow: /*.png$ Allow: /*.jpg$ Allow: /*.jpeg$ Allow: /*.gif$ Allow: /*.svg$ Allow: /*.ico$ Allow: /*.woff$ Allow: /*.woff2$ Allow: /*.ttf$ Allow: /*.eot$ # Crawl delay for other bots (prevents server overload) Crawl-delay: 1 # ============================================ # SITEMAP (Important for Google) # ============================================ Sitemap: https://shortenedurl.com/sitemap.xml