nginx伪装user-agent等
生活随笔
收集整理的這篇文章主要介紹了
nginx伪装user-agent等
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
修改配置文件nginx.conf
server {listen 80;resolver 8.8.8.8; location / {set $agent "Mozilla/5.0 (iPad; U; CPU OS 4_3_3 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5";proxy_pass $scheme://$host$request_uri;proxy_set_header Host $http_host;proxy_set_header Connection '';proxy_set_header Proxy-Connection '' ;proxy_set_header Accept-Charset '';proxy_set_header Accept-Encoding '';proxy_set_header Accept-Language '';proxy_set_header Accept '';proxy_set_header Pragma 'no-cache';proxy_set_header Cache-Control 'no-cache';#proxy_set_header If-Modified-Since '';proxy_buffers 256 4k;proxy_max_temp_file_size 0k;proxy_set_header User-Agent $agent;} }轉(zhuǎn)載于:https://juejin.im/post/5aad0dfb5188257b1c74fc84
創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎(jiǎng)勵(lì)來咯,堅(jiān)持創(chuàng)作打卡瓜分現(xiàn)金大獎(jiǎng)總結(jié)
以上是生活随笔為你收集整理的nginx伪装user-agent等的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: react-native flatlis
- 下一篇: 使用WEB应用时后台发生的事