Hi! Do anyone know how to stop my site to be displayed in an iframe of another site? I found the javascript solution. Is there any better solution??
Stop Iframe
Started on the old forum in April 2012 · view the original in the archive · old links redirect here
do it from inside cpanel in hotlink protection u can add all the file types u dont want to be leached from your server and even set up a nifty little page that the iframe will see when they try. 😀
Creator of Epix.Mobi
Keep an Eye on us Big things coming soon!!!! Need something for your site hit me up here http://coding-talk.com/forum/main-forums/marketplace/153110-free-features-for-your-wapsite
Browsing a site through an iframe cannot be stopped (otherwise except JS). You can still hotlink protect specific file types from cPanel.
mysterio.al - programming is a functional art
try and open a iframe to my site then epix.mobi im going out for a sec let me see if u can do it it isnt using JS btw
Creator of Epix.Mobi
Keep an Eye on us Big things coming soon!!!! Need something for your site hit me up here http://coding-talk.com/forum/main-forums/marketplace/153110-free-features-for-your-wapsite
amitdas333 wrote: Hi! Do anyone know how to stop my site to be displayed in an iframe of another site? I found the javascript solution. Is there any better solution??
PHP WAY
header("X-FRAME-OPTIONS: DENY");
Loony wrote: try and open a iframe to my site then epix.mobi im going out for a sec let me see if u can do it it isnt using JS btw
http://111.118.212.210/~waynickc/xampp/mp3.php
hmm... i guess it really works 😛 try doing it using htaccess works better anyway 😛
Don't think i am bad , i used to be too good one time...
hmm well thanks lol it never showed for me but thanks for the info mate
Creator of Epix.Mobi
Keep an Eye on us Big things coming soon!!!! Need something for your site hit me up here http://coding-talk.com/forum/main-forums/marketplace/153110-free-features-for-your-wapsite
Thanks for all your info. Its better to remove the main cause for which peaple using iframe of my site Adfresh. Now i don't mind if anyone use iframe of my site.
Yeah you can stop frames lol ...
Make it load in 2 places means wake up the browser JS aka javascript
Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!
SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…
Look at youtube and fine there javascript lol i know they have best coded one out.
function parentIsSameOrigin()
{
var result = true;
if (window.parent)
{
result = Boolean
(
// more precise modifications needed here
window.this.location.href.indexOf(window.parent.location.href) == 0
);
}
return result;
}
Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!
SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…
StunningNick wrote: PHP WAY header("X-FRAME-OPTIONS: DENY");
Browser Lowest version Internet Explorer 8.0 Firefox (Gecko) 3.6.9 (1.9.2.9) Opera 10.50 Safari 4.0 Chrome 4.1.249.1042
using a proxy may also stop this from working mobile browsers may not support this also
amitdas333 wrote: Using javascript to stop iframe is not working in operamini.
Limited javascript on operamini will prevent javascript codes from working against iframes
Yep!!!
something else wrote: Browser Lowest version Internet Explorer 8.0 Firefox (Gecko) 3.6.9 (1.9.2.9) Opera 10.50 Safari 4.0 Chrome 4.1.249.1042
using a proxy may also stop this from working mobile browsers may not support this also
Yep!!! this/htaccess or simply X-FRAME-OPTIONS HTTP header will only work with browser(s){version(s)} supporting them & 1 can easily bypass using custom header or either some proxy site(s).
Don't think i am bad , i used to be too good one time...
Using hotlinking protection it works but creates many other problems.