From 83ab40fdad7616900e34d339b712abc66453623e Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Fri, 3 Apr 2026 08:44:33 -0500 Subject: [PATCH] Add robots.txt and sitemap.xml for search engines --- lib/microwaveprop_web.ex | 2 +- priv/static/robots.txt | 13 ++++++++----- priv/static/sitemap.xml | 28 ++++++++++++++++++++++++++++ 3 files changed, 37 insertions(+), 6 deletions(-) create mode 100644 priv/static/sitemap.xml diff --git a/lib/microwaveprop_web.ex b/lib/microwaveprop_web.ex index 3302d1cf..dcbeadda 100644 --- a/lib/microwaveprop_web.ex +++ b/lib/microwaveprop_web.ex @@ -17,7 +17,7 @@ defmodule MicrowavepropWeb do those modules here. """ - def static_paths, do: ~w(assets fonts images downloads favicon.ico robots.txt) + def static_paths, do: ~w(assets fonts images downloads favicon.ico robots.txt sitemap.xml) def router do quote do diff --git a/priv/static/robots.txt b/priv/static/robots.txt index 26e06b5f..1525ed00 100644 --- a/priv/static/robots.txt +++ b/priv/static/robots.txt @@ -1,5 +1,8 @@ -# See https://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / +User-agent: * +Allow: / +Disallow: /backfill +Disallow: /dev/ +Disallow: /dashboard +Disallow: /health + +Sitemap: https://prop.w5isp.com/sitemap.xml diff --git a/priv/static/sitemap.xml b/priv/static/sitemap.xml new file mode 100644 index 00000000..6b423b2e --- /dev/null +++ b/priv/static/sitemap.xml @@ -0,0 +1,28 @@ + + + + https://prop.w5isp.com/ + daily + 1.0 + + + https://prop.w5isp.com/map + hourly + 0.9 + + + https://prop.w5isp.com/submit + monthly + 0.7 + + + https://prop.w5isp.com/contacts + daily + 0.6 + + + https://prop.w5isp.com/algo + monthly + 0.5 + +