forked from leftypol/leftypol
post.php: add IP API check
This commit is contained in:
parent
2337f99078
commit
a422122dd4
1 changed files with 12 additions and 0 deletions
12
post.php
12
post.php
|
@ -469,6 +469,10 @@ function handle_delete()
|
|||
|
||||
checkDNSBL();
|
||||
|
||||
if (checkIPAPI($_SERVER['REMOTE_ADDR'])) {
|
||||
error($config['error']['proxy']);
|
||||
}
|
||||
|
||||
// Check if board exists
|
||||
if (!openBoard($_POST['board'])) {
|
||||
error($config['error']['noboard']);
|
||||
|
@ -577,6 +581,10 @@ function handle_report()
|
|||
|
||||
checkDNSBL();
|
||||
|
||||
if (checkIPAPI($_SERVER['REMOTE_ADDR'])) {
|
||||
error($config['error']['proxy']);
|
||||
}
|
||||
|
||||
// Check if board exists.
|
||||
if (!openBoard($_POST['board'])) {
|
||||
error($config['error']['noboard']);
|
||||
|
@ -855,6 +863,10 @@ function handle_post()
|
|||
|
||||
checkDNSBL();
|
||||
|
||||
if (checkIPAPI($_SERVER['REMOTE_ADDR'])) {
|
||||
error($config['error']['proxy']);
|
||||
}
|
||||
|
||||
// Check if banned
|
||||
checkBan($board['uri']);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue