-
-
Save vncloudsco/9a39e5703626a167b3946dc16f3854ff to your computer and use it in GitHub Desktop.
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
$whitelist = array('index.html', 'downloads.html', 'info.html'); | |
$page = $_GET['page']; | |
if(in_array($page,$whitelist)){ | |
include($page); | |
}else{ | |
die("Attack attempt"); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment