Source code for the Random website in an iframe script

Source of urls.txt

Source of randomsite.php

Random website in an iframe

What does it do?

Include this PHP script on a page, then every time the page is reloaded, a different page will appear in the iframe.

How to use it

Fill a text file (urls.txt) with URLS, one per line. Include the script on a page and it will pick one at random to display.

I want to View the source

Scroll down the page or click here for the PHP source code. Also, you can take a look at what the text file containing the URL's looks like.