My website keeps getting hijacked by searchportal.information it looks like they are using an iframe script to do it. here is the script (link doesn't work anymore):

how do I prevent them from including my site/content on an iframe on their site?


2 Answers 2


Use a frame breaker script:

<script type="javascript">


One of the best ways to prevent framing, is to use a rule on your .htaccess, like so

<IfModule mod_headers.c>
        Header always append X-Frame-Options SAMEORIGIN

This method doesn't rely on JavaScrpit being active or not but on the support of the X-Frame-Options header. It is not an Internet Standard, but it is quite well supported as of February 2014

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.