Prevent rendering your page inside an iframe using X-Frame-Options

Setting the reponse header: X-Frame-Options to DENY or SAMEORIGIN will prevent your page to be displayed in another site and will prevent most clickjacking attacks DENY <br/> will prevent your page completely from being displayed in an iframe.</br> php example: <?php header(‘X-Frame-Options: DENY’); ?> SAMEORIGIN <br/> will prevent you page from being displayed in other sites (in our case to allow displaying your […]

Read More

Iframe code with random time

If you want to change multiple webpage inside a iframe which changes in random time gap , Use this code to generate random time spent on website <iframe src=”URL-HERE” id=”myFrame” width=”1px” marginwidth=”0″ height=”1px” marginheight=”0″ align=”middle” scrolling=”no” frameBorder=”0″></iframe> <script> function getRandomInt(min, max) {  min = Math.ceil(min);  max = Math.floor(max);  return Math.floor(Math.random() * (max – min)) + […]

Read More