Website URL
https://freestuff.infinityfree.me/
Error Message
None
Other Information
Hi, I would like to prevent my website from being embedded in frames, iframes, or similar elements on other websites. Could you please guide me on how to block this using the appropriate headers or configurations? Thank you!
Meishin
October 27, 2025, 10:48am
2
Free hosting does that by default.
InfinityFree uses a security system on all free hosting accounts to ensure your website is accessed by real web browsers, not bots or automated scripts. While this protects your site from malicious traffic, it can affect certain types of access.
How the security system works
The system checks that visitors can execute JavaScript and accept cookies: features that all modern web browsers support. This verification happens automatically and most website visitors will never notice it.
You may occa…
6 Likes
@Meishin thanks for your clarification. Mind to share the codes needed to prevent iframe just in case the built-in system doesnt works?
Meishin
October 27, 2025, 11:07am
4
I’m pretty sure that system always works.
Unfortunately I’m not a professional at setting these rules so I asked ChatGPT and apparently you need to set some headers with .htaccess:
Header set X-Frame-Options "DENY"
Header set Content-Security-Policy "frame-ancestors 'none';"
7 Likes
system
Closed
November 3, 2025, 11:07am
5
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.