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

1
2
3
4
5
6
7
location / {
  if ($http_referer  ~ 'demo.cn') {
    add_header X-Frame-Options DENY;
     add_header Content-Security-Policy DENY;
   }
 
   }

  

posted @   明明一颗大白菜  阅读(84)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!
· 字符编码:从基础到乱码解决
历史上的今天:
2021-06-29 sql语句delete from 'table' 和 truncate 'table'的区别
<-- -->
点击右上角即可分享
微信分享提示