Someone keeps uploading .ico files to my wordpress sites. I'd like to know if their is a way to block certain file types from being uploaded int eh NGINX config?
Asked
Active
Viewed 533 times
1 Answers
-1
Just in case someone comes across this and wants a solution. I don't think you can block just one file type in nginx but what you can do it all only certain file types in. To do so just add
location ~ .(htm|css|jpg|gif|mp3)$ { allow all; }
to your NGINX config.
fskilroy
- 1