Skip to content

Commit

Permalink
添加简易密码访问
Browse files Browse the repository at this point in the history
  • Loading branch information
yitd authored Feb 28, 2021
1 parent 10e0145 commit d4bf1b1
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,7 @@
}
if ($_COOKIE['Any-Proxy'] != $pass) {
header('HTTP/1.1 403');
exit('
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>form{ width: 90%;margin: 0 auto;text-align: center;}
</style>
</head>
<body>
<meta charset="UTF-8">
<form method="post">
密码:
<input type="password" name="Any-Proxy" />
<input type="submit" value="访问" />
</form>
</body>
</html>
');
exit('<!DOCTYPE html><html><head><meta charset="UTF-8"><meta name="viewport"content="width=device-width, initial-scale=1.0"><style>form{width:90%;margin:0 auto;text-align:center}</style></head><body><meta charset="UTF-8"><form method="post">密码:<input type="password"name="Any-Proxy"/><input type="submit"value="访问"/></form></body></html>');
}
$host = $_SERVER['HTTP_HOST'];
$path = $_SERVER['REQUEST_URI'];
Expand Down

0 comments on commit d4bf1b1

Please sign in to comment.