Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Redirect for Facebook's social preview bot
<?php
$user_agent = $_SERVER["HTTP_USER_AGENT"];
if (strpos($user_agent, "facebookexternalhit") !== false) {
header("Location: https://runescape.com");
} else {
echo("poc.razb.me");
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.