ʹÓÃNginxÌí¼Óheader·ÀÖ¹ÍøÒ³±»frame
ÓйØCrossFrameµÄ˵Ã÷¼°Î£º¦²Î¼û£ºhttp://wenku.baidu.com/view/f05cddc52cc58bd63186bd33.html
ÏÂÃæÖ÷Ҫ˵˵¼¸ÖÖ·ÀÖ¹±»CrossFrameµÄ·½·¨£º
¿ÉÒÔʹÓÃphp»ònginxµÈÌí¼ÓX-Frame-Options headerÀ´¿ØÖÆframeȨÏÞ
X-Frame-OptionsÓÐÈý¸ö¿ÉÑ¡µÄÖµ£º
DENY£ºä¯ÀÀÆ÷¾Ü¾øµ±Ç°Ò³Ãæ¼ÓÔØÈκÎFrameÒ³Ãæ
SAMEORIGIN£ºframeÒ³ÃæµÄµØÖ·Ö»ÄÜΪͬԴÓòÃûϵÄÒ³Ãæ
ALLOW-FROM£ºÔÊÐíframe¼ÓÔصÄÒ³ÃæµØÖ·
1¡¢php·ÀÖ¹·½·¨
header('X-Frame-Options:Deny');
2¡¢Nginx·ÀÖ¹·½·¨
add_header X-Frame-Options SAMEORIGIN ¿ÉÒÔ¼ÓÔÚlocaionÖÐ location / { add_header X-Frame-Options SAMEORIGIN; }
3¡¢Apahe ·ÀÖ¹·½·¨
Header always append X-Frame-Options SAMEORIGIN
ʹÓú󲻳äÐíframeµÄÒ³Ãæ»áÏÔʾһ¸ö°×°å¡£
ÍƼöÐÅÏ¢
- linuxÃüÁîѧϰ±Ê¼Ç£¨11£©£ºnlÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨5£©£ºrmÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨4£©£ºmkdirÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨1£©£ºlsÃüÁî
- ½«CentosµÄyumÔ´¸ü»»Îª¹úÄڵİ¢ÀïÔÆÔ´
- ʹÓÃNginxÌí¼Óheader·ÀÖ¹ÍøÒ³±»frame
- linuxϼÓËÙscp´«Êä´óÎļþµÄËÙ¶È
- linuxϵͳÉ϶ÔnginxÈÕÖ¾·Ö¸î´¦Àí
- lnmp/nginxϵͳÕæÕýÓÐЧµÄͼƬ·ÀµÁÁ´ÍêÕûÉèÖÃÏê½â
- Í»ÆÆÊ®Íò²¢·¢µÄNginxµÄÅäÖü°ÓÅ»¯
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- ²éÕÒ²¢É¾³ý.svnĿ¼Îļþ
- redis ÆßÖÖÊý¾ÝÀàÐ͵ÄʹÓó¡¾°
- linux ÏÂÎļþ¸´ÖƵ½windowsÏÂÂÒÂëµÄ½â¾ö°ì·¨
- nginx³öÏÖ502 upstream sent too big he....
- linuxÏÂsudoÅäÖÃÏê½â
- linuxÃüÁîѧϰ±Ê¼Ç£¨15£©£ºtailÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨14£©£ºheadÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨13£©£ºlessÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨12£©£ºmoreÃüÁî
- ¼ÓÃÜËã·¨±È½Ï3DES AES RSA ECC MD5 SHA1µÈ
ÆÀÂÛ