Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This reminds me of the 90s when sites where hosted inside iframes to inject ads. ISPs were notorious for doing this. Every site started running javascript to break out of iframes because of it. I'm not sure if this would work for you, but something like this could help you

if (window.location.hostname !== 'your host name') { window.location.replace('url on your website');



Thanks for this reminder. You gotta love frames and the corresponding reloads.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: