Created
June 4, 2018 22:42
-
-
Save waltertschwe/9b4ceef8babb72c9455e9c1666dda923 to your computer and use it in GitHub Desktop.
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 | |
| $urls = ["/admin/scripts/vuln.php", "/admin/scripts/unsafe.php", "/admin/lib/blocked.php"]; | |
| foreach ($urls as $url) { | |
| if (preg_match("/\/admin\/scripts\/vuln.php/", $url) | |
| || preg_match("/\/admin\/scripts\/unsafe.php/", $url) | |
| || preg_match("/\/admin\/lib\/blocked.php/", $url) | |
| ) { | |
| echo "block url<br/>"; | |
| } else { | |
| echo "clean url<br/>"; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment