Skip to content

Instantly share code, notes, and snippets.

@LiamChapman
Last active October 11, 2018 13:51
Show Gist options
  • Select an option

  • Save LiamChapman/133a2e2cbcd4a2c7ac5cb699d73867b9 to your computer and use it in GitHub Desktop.

Select an option

Save LiamChapman/133a2e2cbcd4a2c7ac5cb699d73867b9 to your computer and use it in GitHub Desktop.
node express hide from robots.txt
app.get('/robots.txt', function (req, res) {
res.type('text/plain');
res.send("User-agent: *\nDisallow: /");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment