Question about using x-frame-options
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
-
Hello :) You may find the following third-party URLs helpful: How to Block Iframe call How to use .htaccess to allow page access in my iframe but not directly? Thank you. 0 -
Thank you!! 0
Please sign in to leave a comment.
Comments
2 comments