nginx訪問url內容過濾


 當訪問的url中含有/%df時返回404

 location / {
         if ($request_uri ~* "/%df") {
         #   return 200 "error";
             return 404;
         }
         proxy_pass http://127.0.0.1:80/;
         proxy_set_header Host $host;
         proxy_set_header X-Real-IP $remote_addr;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
   #     index index.html index.htm;
  }

  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM