Skip to content

Commit

Permalink
Prevent robots from vercel site
Browse files Browse the repository at this point in the history
  • Loading branch information
zzhaobraze committed Jul 7, 2023
1 parent 9013b9b commit 9016226
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions public/robot.txt → _docs/_docs_pages/robots.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
permalink: /robot.txt
layout: bare
---
User-agent: Baiduspider
User-agent: 360Spider
User-agent: Yisouspider
Expand Down
1 change: 0 additions & 1 deletion proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
set :port, 4000

get '/' do
send_file File.join(settings.public_folder, 'robot.txt')
if !(lang.nil?) && (lang != 'en')
send_file File.join(settings.public_folder, "index_#{lang}.html")
else
Expand Down

0 comments on commit 9016226

Please sign in to comment.