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>