Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. 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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice