7

nginxUA识别技巧

 3 years ago
source link: http://www.8sec.cc/index.php/archives/463/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

nginxUA验证

/etc/nginx/sites-enabled/default

location / {
                # First attempt to serve request as file, then
                # as directory, then fall back to displaying a 404.
                 if ($http_user_agent !~* ".NET CLR 3.0.30729|firefox") {
                return 403;
                }

                try_files $uri $uri/ =404;
        }

本文链接:

http://www.8sec.cc/index.php/archives/463/

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK