Created
October 7, 2016 07:03
-
-
Save kanibaspinar/feffab80cac4cb446153c4ce09db1aaf to your computer and use it in GitHub Desktop.
Sistem Dosyalarının Güvenliği - Nginx
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
# Bu kuralları bilgi dahilinde entegre etmelisiniz. | |
# Bu kurallar sayesinde uzantısı eklenen dosyalara doğrudan erişimleri dışardan bağlantı denemelerini tamamen engelliyoruz. | |
location ~* /\.(?!well-known\/) { | |
deny all; | |
} | |
# uzantısı yer alan türlere doğrudan bağlantıyı engelleyelim | |
location ~* (?:\.(?:bak|conf|dist|fla|in[ci]|log|psd|sh|sql|sw[op])|~)$ { | |
deny all; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment