Skip to content

Instantly share code, notes, and snippets.

@joanfabregat
Created February 25, 2023 12:33
Show Gist options
  • Save joanfabregat/cfa4b1232b22b7b880b67766c7b8dec2 to your computer and use it in GitHub Desktop.
Save joanfabregat/cfa4b1232b22b7b880b67766c7b8dec2 to your computer and use it in GitHub Desktop.
Servir robot.txt avec Nginx
location /robots.txt {
return 200 "User-agent: *\\nDisallow: /";
access_log off;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment