Last active
August 17, 2016 10:50
-
-
Save detj/cf3929251cf8fc8fa921ecf37feb4691 to your computer and use it in GitHub Desktop.
robots.txt nginx config in one line
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
| #Allow access to all User-agents: | |
| location /robots.txt {return 200 "User-agent: *\nDisallow:\n";} | |
| #Disallow access to every User-agent: | |
| location /robots.txt {return 200 "User-agent: *\nDisallow: /\n";} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment