Created
March 12, 2018 02:48
-
-
Save sugumura/c4cd47988167e2ff69b29083cb08e3d7 to your computer and use it in GitHub Desktop.
NginxでSlackbotのアクセスを弾きたい場合
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
# ref: https://api.slack.com/robots | |
location / { | |
if ( $http_user_agent ~* (Slackbot-LinkExpanding) ) { | |
return 403; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment