@@ -25,6 +31,16 @@
@endif
+ @guest
+
+ You're viewing limited data for this site.
+
Create a free account
+ or
+
sign in
+ to see all of its pages, backlinks, and subdomains.
+
+ @endguest
+
@if ($site->server || $site->powered_by || $site->generator)
@if ($site->generator)
diff --git a/routes/web.php b/routes/web.php
index d2ef9bf..905c01f 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -1,6 +1,7 @@
name('sites.index');
Route::get('/sites/{site}', [SiteController::class, 'show'])->name('sites.show');
Route::get('/discover', DiscoverSearch::class)->name('discover');
+Route::get('/sitemap.xml', SitemapController::class)->name('sitemap');
+
+Route::get('/robots.txt', function () {
+ return response("User-agent: *\nDisallow:\nSitemap: ".url('/sitemap.xml')."\n")
+ ->header('Content-Type', 'text/plain');
+})->name('robots');
+
Route::view('profile', 'profile')
->middleware(['auth'])
->name('profile');