diff options
Diffstat (limited to 'superstack.php')
-rw-r--r-- | superstack.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/superstack.php b/superstack.php index c02ae6d..8f8b2a0 100644 --- a/superstack.php +++ b/superstack.php | |||
@@ -1,5 +1,11 @@ | |||
1 | <?php | 1 | <?php |
2 | $site = urldecode($_GET['page']); | 2 | $site = urldecode($_GET['page']); |
3 | |||
4 | if(!empty($site) && !preg_match("substack\.com", $site)) { | ||
5 | http_response_code(403); | ||
6 | exit | ||
7 | } | ||
8 | |||
3 | $ch = curl_init($site); | 9 | $ch = curl_init($site); |
4 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | 10 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |
5 | $page = curl_exec($ch); | 11 | $page = curl_exec($ch); |