Last active
October 11, 2018 13:51
-
-
Save LiamChapman/133a2e2cbcd4a2c7ac5cb699d73867b9 to your computer and use it in GitHub Desktop.
node express hide from robots.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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