Welcome to the Dead Internet Project


Home | Blog | Chat Room | Coding | File Archive | Internet History | Webring | Contact


Advertise here

Random Website
PHP

A simple script that redirects users to a random website from a list of URLs.

Go Back

Create a file called random_site.php and use this code:
<?php

$websites = [
    "https://google.com",
    "http://facebook.com",
    "https://instagram.com"
];

$randomWebsite = $websites[array_rand($websites)];

header("Location: $randomWebsite");
exit;
?>

<a href="scripts/random_site.php" target="_blank">Click Here</a>
						

© Copyright Dead Internet Online. All Rights Reserved.