Skip to content

Instantly share code, notes, and snippets.

@vncloudsco
Created December 12, 2019 07:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vncloudsco/9a39e5703626a167b3946dc16f3854ff to your computer and use it in GitHub Desktop.
Save vncloudsco/9a39e5703626a167b3946dc16f3854ff to your computer and use it in GitHub Desktop.
$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