Skip to content

Instantly share code, notes, and snippets.

@gabrielfalcao
Created April 20, 2012 05:43
Show Gist options
  • Save gabrielfalcao/2426387 to your computer and use it in GitHub Desktop.
Save gabrielfalcao/2426387 to your computer and use it in GitHub Desktop.
app.get('/robots.txt', function(req, res){
var rules = [
'User-agent: *',
'Disallow: /'
].join('\n');
res.send(rules, { 'Content-Type': 'text/plain' }, 200);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment