deanpowers commited on
Commit
529f8e7
·
1 Parent(s): e84317f

feat(seo): serve robots.txt, sitemap.xml, llms.txt at domain root for AI crawler discovery

Browse files
Files changed (4) hide show
  1. local_app.py +16 -0
  2. static/llms.txt +16 -0
  3. static/robots.txt +30 -0
  4. static/sitemap.xml +10 -0
local_app.py CHANGED
@@ -110,6 +110,9 @@ PUBLIC_PATHS_EXACT = (
110
  '/about/',
111
  '/glossary',
112
  '/glossary/',
 
 
 
113
  '/reset',
114
  '/reset/new',
115
  '/favicon.ico',
@@ -1499,6 +1502,19 @@ def about_page():
1499
  def glossary_page():
1500
  return render_template('glossary.html')
1501
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1502
  @app.route('/api/whoami')
1503
  def whoami_api():
1504
  u = current_user()
 
110
  '/about/',
111
  '/glossary',
112
  '/glossary/',
113
+ '/robots.txt',
114
+ '/sitemap.xml',
115
+ '/llms.txt',
116
  '/reset',
117
  '/reset/new',
118
  '/favicon.ico',
 
1502
  def glossary_page():
1503
  return render_template('glossary.html')
1504
 
1505
+
1506
+ @app.route('/robots.txt')
1507
+ def robots_txt():
1508
+ return send_from_directory('static', 'robots.txt', mimetype='text/plain')
1509
+
1510
+ @app.route('/sitemap.xml')
1511
+ def sitemap_xml():
1512
+ return send_from_directory('static', 'sitemap.xml', mimetype='application/xml')
1513
+
1514
+ @app.route('/llms.txt')
1515
+ def llms_txt():
1516
+ return send_from_directory('static', 'llms.txt', mimetype='text/plain')
1517
+
1518
  @app.route('/api/whoami')
1519
  def whoami_api():
1520
  u = current_user()
static/llms.txt ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Blind Monkeys
2
+
3
+ > Free, open-source cryptocurrency scanner. Scores coins using composite technical analysis. Does not handle user funds, does not execute trades.
4
+
5
+ ## Core pages
6
+ - [About](https://blind-monkeys.com/about): What Blind Monkeys is and isn't
7
+ - [Glossary](https://blind-monkeys.com/glossary): Definitions of Z-score, momentum, volatility, RSI, and 12 more terms
8
+ - [Scanner](https://blind-monkeys.com/scan/): Live coin scores in Conservative and Risk-Taker modes
9
+ - [License](https://blind-monkeys.com/license): MIT License
10
+
11
+ ## Reference
12
+ - [Terms](https://blind-monkeys.com/terms)
13
+ - [Privacy](https://blind-monkeys.com/privacy)
14
+
15
+ ## Source
16
+ - [Repository](https://git.sr.ht/~deanpowers/blind-monkeys): Full source code (MIT)
static/robots.txt ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ User-agent: *
2
+ Allow: /
3
+ Disallow: /admin/
4
+ Disallow: /api/
5
+ Disallow: /login
6
+ Disallow: /register
7
+ Disallow: /profile/
8
+ Disallow: /settings/
9
+
10
+ User-agent: GPTBot
11
+ Allow: /
12
+ Disallow: /admin/
13
+
14
+ User-agent: ClaudeBot
15
+ Allow: /
16
+ Disallow: /admin/
17
+
18
+ User-agent: PerplexityBot
19
+ Allow: /
20
+ Disallow: /admin/
21
+
22
+ User-agent: OAI-SearchBot
23
+ Allow: /
24
+ Disallow: /admin/
25
+
26
+ User-agent: Google-Extended
27
+ Allow: /
28
+ Disallow: /admin/
29
+
30
+ Sitemap: https://blind-monkeys.com/sitemap.xml
static/sitemap.xml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
3
+ <url><loc>https://blind-monkeys.com/</loc><priority>1.0</priority></url>
4
+ <url><loc>https://blind-monkeys.com/scan/</loc><priority>0.9</priority></url>
5
+ <url><loc>https://blind-monkeys.com/about</loc><priority>0.8</priority></url>
6
+ <url><loc>https://blind-monkeys.com/glossary</loc><priority>0.8</priority></url>
7
+ <url><loc>https://blind-monkeys.com/license</loc><priority>0.5</priority></url>
8
+ <url><loc>https://blind-monkeys.com/terms</loc><priority>0.3</priority></url>
9
+ <url><loc>https://blind-monkeys.com/privacy</loc><priority>0.3</priority></url>
10
+ </urlset>