forked from leftypol/leftypol
SECURITY: prevent a DoS attack by disabling HTTP access to tools/ scripts.
This commit is contained in:
parent
c5c356e077
commit
5f7e62142c
4 changed files with 1 additions and 68 deletions
|
@ -2,10 +2,6 @@
|
|||
<?php
|
||||
require dirname(__FILE__) . '/inc/cli.php';
|
||||
|
||||
if(!is_writable($config['file_script'])) {
|
||||
get_httpd_privileges();
|
||||
}
|
||||
|
||||
$variants = [["hour", 3600], ["day", 3600*24], ["3 days", 3600*24*3],
|
||||
["week", 3600*24*7], ["month", 3600*24*7*30]];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue