summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2022-02-11 17:27:32 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2022-02-11 17:27:32 +0100
commitcb55762ff7b17ae35e58e9b68689ac461e928126 (patch)
treead1691609a0c0c51f90373bf57d5f2ebee6d74d3
parentb& (diff)
downloadsijanec.eu-cb55762ff7b17ae35e58e9b68689ac461e928126.tar
sijanec.eu-cb55762ff7b17ae35e58e9b68689ac461e928126.tar.gz
sijanec.eu-cb55762ff7b17ae35e58e9b68689ac461e928126.tar.bz2
sijanec.eu-cb55762ff7b17ae35e58e9b68689ac461e928126.tar.lz
sijanec.eu-cb55762ff7b17ae35e58e9b68689ac461e928126.tar.xz
sijanec.eu-cb55762ff7b17ae35e58e9b68689ac461e928126.tar.zst
sijanec.eu-cb55762ff7b17ae35e58e9b68689ac461e928126.zip
-rw-r--r--api/php/api.php4
-rw-r--r--api/php/b.txt15
2 files changed, 10 insertions, 9 deletions
diff --git a/api/php/api.php b/api/php/api.php
index 2b352a4..d274cee 100644
--- a/api/php/api.php
+++ b/api/php/api.php
@@ -28,10 +28,10 @@
header("Content-Type: text/plain");
exit("400: Napaka. Izgleda, kakor da avtomatizirate zahteve. Koda napake: jebise");
}
- if (strpos(@file_get_contents("b.txt"), "." . explode(".", $_SERVER["REMOTE_ADDR"])[0] . ".") !== FALSE) {
+ if (strpos(@file_get_contents("b.txt"), "\n" . explode(".", $_SERVER["REMOTE_ADDR"])[0] . "." . explode($_SERVER["REMOTE_ADDR"])[1] . "\t") !== FALSE) {
http_response_code(400);
header("Content-Type: text/plain");
- exit("400: Napaka. Izgleda, da ste na črnem seznamu. Kontaktirajte me.");
+ exit("400: Napaka. Izgleda, da ste na /16 črnem seznamu. Kontaktirajte me.");
}
$sporocilo = $_REQUEST['message'];
$parent = $_REQUEST['parent'];
diff --git a/api/php/b.txt b/api/php/b.txt
index ba593ac..67d98af 100644
--- a/api/php/b.txt
+++ b/api/php/b.txt
@@ -1,7 +1,8 @@
-.180. # 180 96 0 0 - 180 127 255 255: Chinanet Jiangsu Province Network (180 110 150 222)
-.54. # 54 39 0 0/16: OVH Hosting, Inc. (HO-2) (54 39 29 64)
-.164. # 164 132 0 0 - 164 132 255 255: FR-OVH (164 132 202 72)
-.192. # 192 40 56 0/22: Performive LLC (TSSL-2) (192 40 57 234)
-.190. # 190 2 128 0/20: WorldStream B.V. (190 2 138 12)
-.107. # 107 181 160 0/19: Performive LLC (TSSL-2) (107 181 180 16)
-.185. # 185 94 192 0/24: M247 LTD Sofia Infrastructure, Bulgaria (185 94 192 35)
+180.96 # 180 96 0 0 - 180 127 255 255: Chinanet Jiangsu Province Network (180 110 150 222)
+54.39 # 54 39 0 0/16: OVH Hosting, Inc. (HO-2) (54 39 29 64)
+164.132 # 164 132 0 0 - 164 132 255 255: FR-OVH (164 132 202 72)
+192.40 # 192 40 56 0/22: Performive LLC (TSSL-2) (192 40 57 234)
+190.2 # 190 2 128 0/20: WorldStream B.V. (190 2 138 12)
+107.181 # 107 181 160 0/19: Performive LLC (TSSL-2) (107 181 180 16)
+185.94 # 185 94 192 0/24: M247 LTD Sofia Infrastructure, Bulgaria (185 94 192 35)
+89.39 # 89 39 107 191/24: Worldstream, DBM, NL