Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2827 from mozilla-services/remove-robots-txt
Browse files Browse the repository at this point in the history
remove robots.txt and replace with meta noindex
  • Loading branch information
dannycoates authored May 8, 2017
2 parents c2cd9b1 + 1c6efd6 commit 4a35e31
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions server/src/pages/shot/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ class Head extends React.Component {
if (expired) {
return (
<reactruntime.HeadTemplate {...this.props}>
<meta name="robots" content="noindex" />
<script src={ this.props.staticLink("/static/js/wantsauth.js") } />
<script src={ this.props.staticLink("/static/js/shot-bundle.js") } async />
<link rel="stylesheet" href={ this.props.staticLink("/static/css/frame.css") } />
Expand Down
5 changes: 0 additions & 5 deletions server/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,11 +383,6 @@ app.get("/favicon.ico", function(req, res) {
res.redirect(301, "/static/img/icon-32.png");
});

app.get("/robots.txt", function(req, res) {
res.header("Content-Type", "text/plain");
res.send("User-agent: *\nDisallow: /\n");
});

app.post("/error", function(req, res) {
let bodyObj = req.body;
if (typeof bodyObj !== "object") {
Expand Down

0 comments on commit 4a35e31

Please sign in to comment.