Created
October 11, 2017 19:05
-
-
Save Hotfirenet/20b9c954c4d827b7b8b81263fed187ee to your computer and use it in GitHub Desktop.
Rajoute pour nginx une conditionqui evite le hotlink en fonction d'une blacklist, contrairement a ce que l'on voit dans les tuto ici il s'agit de bloquer un ou plusieurs sites qui aurait piller votre contenu.
This file contains 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
# /etc/nginx/conf.d/default.conf | |
# NEED https://gist.github.com/Hotfirenet/0d5fc63204ecf8f0022294c0825ab408 | |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server ipv6only=on; | |
... | |
if ($bad_referer) { | |
rewrite (.*) http://hotfirenfw.cluster014.ovh.net/Je-suis-un-gros-encule.gif redirect; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment