Browse Source

Block D+ on special IP addresses

pull/40/head
discomrade 3 years ago
parent
commit
1a90451ec2
  1. 3
      inc/mod/pages.php

3
inc/mod/pages.php

@ -2216,6 +2216,9 @@ function mod_deletebyip($boardName, $post, $global = false) {
if (!$ip = $query->fetchColumn())
error($config['error']['invalidpost']);
// HACK: Prevent D+ or D++ deletion of Tor node or migration placeholder IP
if ($ip == "127.0.0.1" || $ip == "127.0.0.2") {error("Don't nuke ".$ip);}
$boards = $global ? listBoards() : array(array('uri' => $boardName));
$query = '';

Loading…
Cancel
Save