Created
December 31, 2018 09:19
-
-
Save Raztor0/9573dcac3b76c446db9aa1a07760a0db to your computer and use it in GitHub Desktop.
Redirect for Facebook's social preview bot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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