Logo
  • HOME
  • GALLERY
  • BLOG
07/13/2018 by WONY HTML, Linux, Ubuntu 50

iframe 에 페이지가 뜨지 않는 경우 X-Frame-Options

iframe 에 페이지가 뜨지 않는 경우 X-Frame-Options

X-Frame-Options

iframe 에 외부 url을 넣을 경우 페이지가 분명 존재함에도 iframe에 표시가되지 않을 때가 있다 이때 크롬개발자 도구를 Console을 보면 아래와 같은 메세지를 확인 할 수 있다.

1
Refused to display 'https://example.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

X-Frame-Options 은 숨겨진 링크를 사용자를 속여 클릭하게 만드는 Clickjacking 을 방지하기 위한 옵션으로 X-Frame-Options의 경우 아래와 같이 3가지 옵션이 존재한다.

  1. DENY
  2. SAMEORIGIN
  3. ALLOW-FROM http://example.com/

DENY의 경우 iframe에 페이지를 표시 할 수 없다.
SAMEORIGIN의 경우 같은 도메인을 사용하는 사용하는 페이지만 표시 할 수 있다.
ALLOW-FROM의 경우 지정한 도메인의 페이지만 iframe에 표시할 수 있다.

위 설정은 HTML에서 변경 할수 없고 서버관리자에 의해서 수정될 수 있다.

Ubuntu 16.04 LTS Apache2의 경우

/etc/apache2/conf-available/security.conf 파일을 수정함으로써 변경 또는 사용을 중지할 수 있다.

1
2
3
4
5
# Setting this header will prevent other sites from embedding pages from this
# site as frames. This defends against clickjacking attacks.
# Requires mod_headers to be enabled.
#
Header set X-Frame-Options: "sameorigin"

대략 70번째 줄에 위치하고 있으며 쌍따움표안에 값을 변경하면된다 사용하지 않을 경우  Header 앞에 #으로 주석을 걸어 줌으로써 기능을 정지 시킬 수 있다.

 

자세한 내용은 아래의 링크를 참고

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options

apache2 iframe scurite.conf X-Frame-Options
share
0

WONY

learning java, c, html photo.. -_-

RELATED POSTS

02/03/2020by WONY36

NGINX 워드프레스 404 not found error

read on
share
0
07/13/2018by WONY50

iframe 에 페이지가 뜨지 않는 경우 X-Frame-Options

read on
share
0

50 comments on this post

  1. canli tv

    says:
    12/17/2020

    A round of applause for your blog article. Much obliged. Almira Ruy Ligetti

    Reply
  2. slotcasinox

    says:
    12/17/2020

    видать наколках, casino x twitter

    Reply
  3. FreeSlotsRot

    says:
    12/17/2020

    видите ли Пуэбла, official casino x online

    Reply
  4. sikis

    says:
    12/18/2020

    I gotta bookmark this website it seems extremely helpful very helpful. Annmarie Tedie Zeralda

    Reply
  5. sikis

    says:
    12/18/2020

    Keep up the great piece of work, I read few articles on this website and I think that your blog is really interesting and has lots of superb info . Papagena Myrwyn Karb

    Reply
  6. bahis

    says:
    12/18/2020

    Those turned out adorable!! I love upcycle crafts, and this one is very functional. Renee Antoni Roeser

    Reply
  7. bahis

    says:
    12/18/2020

    I stopped gambling after the first week. I got tired of watching the dealer make 21 after drawing five cards. Esma Jeth Grier

    Reply
  8. sikis

    says:
    12/19/2020

    Thanks for sharing your info. I truly appreciate your efforts and I am waiting for your next post thanks once again. Joete Roi Wahkuna

    Reply
  9. sikis

    says:
    12/19/2020

    Perfect piece of work you have done, this web site is really cool with superb info . Gwyn Kaspar Hux

    Reply
  10. bahis

    says:
    12/19/2020

    Please take a look at the internet sites we stick to, including this one, as it represents our picks in the web. Matilda Ricard Jodee

    Reply
  11. bahis

    says:
    12/19/2020

    I am not real wonderful with English but I line up this real easygoing to interpret. Cloe Zebulen Bolt

    Reply
  12. sikis

    says:
    12/19/2020

    Hey just wanted to give you a quick heads up. The words in your content seem to be running off the screen in Safari. Sydelle Hill Chemush

    Reply
  13. bahis

    says:
    12/20/2020

    There is definately a great deal to find out about this topic. I like all the points you made. Jacquelin Hayden Burnside

    Reply
  14. indir

    says:
    12/20/2020

    Simply wish to say your article is as amazing. The clarity in your post is simply great and i could assume you are an expert on this subject. Laryssa Carlyle Ewer

    Reply
  15. torrent

    says:
    12/20/2020

    I have read so many content regarding the blogger lovers but this paragraph is truly a fastidious post, keep it up. Shelia Darrick Morra

    Reply
  16. indir

    says:
    12/21/2020

    I like this website its a master peace ! Glad I detected this on google . Freddi Toby Adali

    Reply
  17. download

    says:
    12/21/2020

    I enjoy the efforts you have put in this, thanks for all the great content. Vinita Conny Fabrianne

    Reply
  18. torrent

    says:
    12/21/2020

    Thanks again for the post. Really thank you! Great. Dulcine Alfredo Ridinger

    Reply
  19. download

    says:
    12/21/2020

    Anyone who is a hardcore hold up to one GB of data. Kathleen Biron Chin

    Reply
  20. bluray

    says:
    12/22/2020

    Thanks for sharing, this is a fantastic article post. Much obliged. Elisha Rainer Jerald

    Reply
  21. yify

    says:
    12/22/2020

    Marvelous, what a weblog it is! This website gives useful information to us, keep it up. Janene Gunther Beaufort

    Reply
  22. ucretsiz

    says:
    12/23/2020

    I do follow both of you already! Lucky me! Viola from Twelfth Night. Batsheva Dominik Clein

    Reply
  23. web

    says:
    01/18/2021

    Hello, recognition you for facts! I repost in Facebook

    Reply
  24. more

    says:
    01/19/2021

    hello

    Reply
  25. ...

    says:
    01/20/2021

    you are recommended to check out the list of qualifications

    Reply
  26. Madison

    says:
    01/21/2021

    When the nose is stuffy, peel the onion and cut it into large pieces. http://om987.com

    Reply
  27. free porn

    says:
    01/22/2021

    Lorem ipsum dolor sit amet, consectetur adipiscing morbi iubse milinse tempus arcu nec tortor pellentesque lacinia felis lacus non nibh. Eudora Bank Pauletta

    Reply
  28. موزیک

    says:
    01/26/2021

    Thanks for a marvelous posting! I quite enjoyed reading it, you’re a great author.

    Reply
  29. Bruce

    says:
    01/29/2021

    Pretty element of content. I just stumbled upon your weblog and in accession capital to say that I acquire in fact
    enjoyed account your blog posts. Anyway I will be subscribing for your feeds or
    even I achievement you access persistently quickly.

    Check out my web blog; cheap flights

    Reply
  30. Genia

    says:
    01/29/2021

    Hi there this is somewhat of off topic but I was wanting
    to know if blogs use WYSIWYG editors or if you have
    to manually code with HTML. I’m starting a blog soon but have no coding know-how so I wanted to get advice from someone with experience.
    Any help would be enormously appreciated!

    Here is my webpage :: cheap flights

    Reply
  31. Victoria

    says:
    01/30/2021

    I am not sure where you’re getting your info, but great topic.
    I needs to spend some time learning much more or understanding more.
    Thanks for magnificent info I was looking for this information for my mission.

    Here is my web-site … cheap flights

    Reply
  32. Cara

    says:
    01/31/2021

    bookmarked!!, I like your site!

    Also visit my homepage :: cheap flights

    Reply
  33. Layla

    says:
    02/01/2021

    Hello, I enjoy reading all of your article post.

    I wanted to write a little comment to support you.

    Feel free to surf to my website cheap flights

    Reply
  34. movie online

    says:
    02/01/2021

    I enjoy reading through an article that can make men and women think. Also, thank you for allowing for me to comment! Peg Elliot Denae

    Reply
  35. Cara

    says:
    02/02/2021

    The other day, while I was at work, my cousin stole my iphone and tested to see if it can survive a thirty foot drop, just so she
    can be a youtube sensation. My iPad is now broken and she has 83
    views. I know this is completely off topic but I had to share it with someone!

    My homepage cheap flights [tinyurl.com]

    Reply
  36. Caitlin

    says:
    02/02/2021

    It’s actually a great and helpful piece of information. I’m satisfied that you shared this useful information with
    us. Please stay us informed like this. Thanks for sharing.

    my homepage cheap flights

    Reply
  37. Chad

    says:
    02/03/2021

    Excellent post. I used to be checking continuously
    this weblog and I am impressed! Very helpful information particularly the ultimate part 🙂 I deal with such information much.

    I used to be seeking this particular info for a long time.

    Thank you and good luck.

    Here is my homepage; cheap flights (tinyurl.com)

    Reply
  38. Lawanna

    says:
    02/03/2021

    whoah this weblog is fantastic i really like reading your posts.

    Stay up the good work! You realize, many individuals are searching
    around for this information, you could help them
    greatly.

    Have a look at my webpage … cheap flights; tinyurl.com,

    Reply
  39. Cyrus

    says:
    02/03/2021

    Hi, Neat post. There’s an issue along with your website in internet explorer, could check this?
    IE still is the market chief and a good portion of people will omit your magnificent writing because
    of this problem.

    Here is my blog … cheap flights (http://tinyurl.com/y68jvlc3)

    Reply
  40. diziler

    says:
    02/07/2021

    You skin becomes more prone to infection because if it. Lorie Johnny Dwan

    Reply
  41. kesintisiz

    says:
    02/10/2021

    Howdy! This is my first comment here so I just wanted to give a quick shout out and say I genuinely enjoy reading your posts. Can you suggest any other blogs/websites/forums that deal with the same topics? Thanks for your time! Carlina Frederic Ahmar

    Reply
  42. Lamar

    says:
    02/12/2021

    Keep on writing, great job!

    Review my web page cheap flights (tinyurl.com)

    Reply
  43. Gretchen

    says:
    02/12/2021

    I am really enjoying the theme/design of your web site. Do you ever run into any web browser compatibility problems?
    A couple of my blog visitors have complained about my site not operating correctly in Explorer but looks great in Safari.
    Do you have any tips to help fix this problem?

    My blog post – cheap flights (tinyurl.com)

    Reply
  44. turkce

    says:
    02/13/2021

    Great delivery. Great arguments. Keep up the good spirit. Marga Germayne Wahlstrom

    Reply
  45. turkce

    says:
    02/14/2021

    Inderdaad de Dordogne is echt een streek voor het gezin, volgend jaar gaan we weer, en vergeet de grotten dan ok niet te bezoeken. Jania Ryley Matilda

    Reply
  46. Isaac

    says:
    02/18/2021

    Good Read Use Punjab Board 12th Result 2019 Pseb.Ac.In

    My page; library

    Reply
  47. Karine

    says:
    02/18/2021

    Scientific Inquiry Method Medical Biology Master’S Degree

    Feel free to visit my web blog: ebook

    Reply
  48. Bertie

    says:
    02/28/2021

    Someone essentially assist to make significantly posts I might state.
    That is certainly the first time I frequented your website page and thus far?
    I amazed with all the research you created to make this actual publish amazing.
    Excellent activity!

    Also visit my web-site … GalaZFines

    Reply
  49. cialis generic

    says:
    03/01/2021

    canadian pharmaceuticals online

    Reply
  50. Fbgjeu

    says:
    03/02/2021

    tadalafil tablets – tadalafil 5mg tadalafil 5mg

    Reply

Leave a Comment! 답글 취소하기

이메일 주소를 발행하지 않을 것입니다. 필수 항목은 *(으)로 표시합니다

JSP에서 수정된 CSS, JS 파일 캐싱 방지하기previous post
FontAwesome 5 유니코드(Unicode) 사용하기 그리고 CSS3에서 스핀(Spin)next post

Hi I am Joongwon amateur photographer based in Daejeon City in South Korea.

CATEGORIES

  • C Programming
  • CMS
    • YoungCart5
  • JAVA Programming
    • JAVA Source code
  • Linux
    • Ubuntu
  • Web Programming
    • CSS
    • HTML
    • JSP/Servlet

RECENT POSTS

  • NGINX 워드프레스 404 not found error
  • AWS EC2 Ubuntu 18.04 LTS 에서 vsFtpd 설정
  • 영카트5 상품요약정보 감추기
  • FontAwesome 5 유니코드(Unicode) 사용하기 그리고 CSS3에서 스핀(Spin)
  • iframe 에 페이지가 뜨지 않는 경우 X-Frame-Options

RECENT COMMENTS

  • FontAwesome 5 유니코드(Unicode) 사용하기 그리고 CSS3에서 스핀(Spin)의 KiaMeeri
  • AWS EC2 Ubuntu 18.04 LTS 에서 vsFtpd 설정의 Loan
  • JAVA – int 변수의 입력 값이 문자일 경우 리턴(?)하기의 Quick Loans
  • FontAwesome 5 유니코드(Unicode) 사용하기 그리고 CSS3에서 스핀(Spin)의 AmyMeeri
  • JAVA – int 변수의 입력 값이 문자일 경우 리턴(?)하기의 Hannelore
© 2020 John Black