Created
June 6, 2018 19:16
-
-
Save cagrimmett/b52d0baba51fbae6abbea9270f0f9ac7 to your computer and use it in GitHub Desktop.
Get query string and check it.
This file contains hidden or 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 | |
$key = $_SERVER['QUERY_STRING']; | |
if ($key == 'RANDOM_TOKEN' ) { | |
echo "String matches!"; | |
} else { | |
exit("You are not authorized. Go away."); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment