nginx设置禁止某个域名内嵌iframe

       location / {
         if ($http_referer  ~ 'demo.cn') {
           add_header X-Frame-Options DENY; 
            add_header Content-Security-Policy DENY;
          }
      
          }

  

posted @ 2023-06-29 16:18  明明一颗大白菜  阅读(63)  评论(0编辑  收藏  举报
<-- -->