The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Question about using x-frame-options

Discussion in 'Security' started by kachan, Jan 18, 2016.

  1. kachan

    kachan Registered

    Joined:
    Dec 15, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,
    How can I prohibit the IFRAME except for access from specific IP address using the following code?
    It wouldn`t work even when I imput the following code to httpd.conf.
    Currently IFLAME is valid from any IP address.
    I have no idea why. If there is any suggestion, please teach me.

    RewriteEngine on
    RewriteCond %{REMOTE_ADDR} !^123\.45\.67\.89$
    RewriteCond %{REMOTE_ADDR} !^123\.111\.222\.123$

    RewriteRule ^(.*) - [E=PUBLIC:$1]
    Header always append X-Frame-Options "SAMEORIGIN" env=PUBLIC
     
  2. kachan

    kachan Registered

    Joined:
    Dec 15, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thank you!!
     
Loading...

Share This Page