Monthly Archives: March 2015

IFRAME REDIRECTING – HOW TO PROTECT WEBSITE FROM IFRAME THIEVES

Recently, when I searched my website using the keywords for it I saw my website completely appearing under a different domain name and even Google cached had my websites content under that domain name.

It was an altogether hacking and after checking out the code of the domain under which my website appeared using firefox bug, I found out it was neither hacking nor phishing and the guy was an iframe thief and managed to use an iframe code  and made my entire website appear under his domain name.

And these two codes below helped me to block anyone using or stealing my website using an iframe code and also redirected the page to my site under its original domain name even before the page loaded completely.

PREVENT FROM IFRAME REDIRECTION javascript CODE 1

Prevent iframe loading of your web page and redirect to iframe target.

 

PREVENT FROM IFRAME REDIRECTION javascript CODE 2