I am new in nginx and want to configure allow or disallow specific user-agent for specific directory. Previously I was use apache for this and use below configuration. /etc/httpd/conf.d/user_agent.conf SetEnvIfNoCase User-Agent "^.*vlc.*" dvc SetEnvIfNoCase User-Agent "^.*AppleCoreMedia.*" iphone <Directory "/var/www/html/movies"> Order deny,allby prashantgupta1805 - New Member Introductions