Groups | Search | Server Info | Login | Register
Groups > dk.edb.internet.webdesign.serverside.php > #7332
| From | Jan Hansen <jhjjhjhhansen@gmail.com> |
|---|---|
| Newsgroups | dk.edb.internet.webdesign.serverside.php |
| Subject | Re: Accesskontrol |
| Date | 2020-05-21 18:25 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <20200521182557.4b4d0b4ef8ccdc97e0e7bbd8@gmail.com> (permalink) |
| References | (3 earlier) <8ccq8lklzz6n.dlg@lundhansen.dk> <20200516173821.dbbd6d546b5cdad8547e69dd@gmail.com> <jnday9dmo2eh.dlg@lundhansen.dk> <1oa357603n8pt.dlg@lundhansen.dk> <puqa9mk1cam9.dlg@lundhansen.dk> |
Bertel Lund Hansen skrev: > Bertel Lund Hansen skrev: > > > Nu har jeg lavet en PHP-version. Den ligger her: > > Jeg glemte lige: > > Den forudsætter at der ligger IP-lister på formen: > > 5.10.78.16-5.10.78.23 > 5.32.128.0-5.32.135.255 > 5.53.128.0-5.53.255.255 Jeg har fosøgt at komprimere lidt, og har lavet databasen om til binær udgave. Hver IP kan jo skrives i 4 bytes, og da de gratis databaser kun indeholder områder, hvor sidste byte er ens, er den fjerde byte til at spare væk. Der er under 256 lande, så jeg har sat én byte for landekode ind til hvert område. Hele databasen er så kommet ned på 692 KB, og ved hjælp af en liste over landenavne og -koder, kan det stadig pakkes ud til den 8,1 MB .csv fil, det kommer fra. Søgerutinen kunne nok laves lidt mere effektiv, hvis jeg havde forstand på det, men det tager da ikke en evighed at finde de 50 lande på hver side af for eksempel http://www.sniper-pistol.com/stats/0907cs/ > Største forbedring er at det nu kan sammenligne alle de > tilgængelige komprimerede IP-filer og finde overlap imellem dem. Er der overlap? Hvis det er områder i forlængelse af hinanden, har jeg prøvet at lave noget, der sætter dem sammen til et område. Når jeg på http://www.sniper-pistol.com/geoip/ipliste.php laver en liste over USA, kommer der i intervallet imellem 148.59.133.255 og 148.59.135.0 ti forskellige områder. Det samme med Canada. Hvis jeg derimod laver en liste, hvor både Canada og USA er med, bliver det sat sammen til ét område, ['148.59.134.0','148.59.134.255'], -- mvh Jan. Help Microsoft stamp out piracy. Give Linux to a friend today!
Back to dk.edb.internet.webdesign.serverside.php | Previous | Next — Previous in thread | Next in thread | Find similar
Accesskontrol Bertel Lund Hansen <gadekryds@lundhansen.dk> - 2020-05-06 17:32 +0200
Re: Accesskontrol Arne Vajhøj <arne@vajhoej.dk> - 2020-05-06 12:38 -0400
Re: Accesskontrol Bertel Lund Hansen <gadekryds@lundhansen.dk> - 2020-05-06 19:04 +0200
Re: Accesskontrol Kim Ludvigsen <kim@kimsside.dk> - 2020-05-06 19:02 +0200
Re: Accesskontrol Bertel Lund Hansen <gadekryds@lundhansen.dk> - 2020-05-06 19:24 +0200
Re: Accesskontrol Kim Ludvigsen <kim@kimsside.dk> - 2020-05-06 19:41 +0200
Re: Accesskontrol Bertel Lund Hansen <gadekryds@lundhansen.dk> - 2020-05-06 21:32 +0200
Re: Accesskontrol Jan Hansen <jhjjhjhhansen@gmail.com> - 2020-05-06 21:17 +0200
Re: Accesskontrol Bertel Lund Hansen <gadekryds@lundhansen.dk> - 2020-05-06 21:44 +0200
Re: Accesskontrol Jan Hansen <jhjjhjhhansen@gmail.com> - 2020-05-06 23:26 +0200
Re: Accesskontrol Bertel Lund Hansen <gadekryds@lundhansen.dk> - 2020-05-07 05:38 +0200
Re: Accesskontrol Arne Vajhøj <arne@vajhoej.dk> - 2020-05-08 13:50 -0400
Re: Accesskontrol Jan Hansen <jhjjhjhhansen@gmail.com> - 2020-05-08 21:39 +0200
Re: Accesskontrol Arne Vajhøj <arne@vajhoej.dk> - 2020-05-08 16:06 -0400
Re: Accesskontrol Bertel Lund Hansen <gadekryds@lundhansen.dk> - 2020-05-09 08:35 +0200
Re: Accesskontrol Jan Hansen <jhjjhjhhansen@gmail.com> - 2020-05-09 13:34 +0200
Re: Accesskontrol Bertel Lund Hansen <gadekryds@lundhansen.dk> - 2020-05-09 20:21 +0200
Re: Accesskontrol Arne Vajhøj <arne@vajhoej.dk> - 2020-05-09 15:02 -0400
Re: Accesskontrol Bertel Lund Hansen <gadekryds@lundhansen.dk> - 2020-05-09 21:17 +0200
Re: Accesskontrol Arne Vajhøj <arne@vajhoej.dk> - 2020-05-07 22:44 -0400
Re: Accesskontrol Bertel Lund Hansen <gadekryds@lundhansen.dk> - 2020-05-08 07:17 +0200
Re: Accesskontrol Jan Hansen <jhjjhjhhansen@gmail.com> - 2020-05-08 11:55 +0200
Re: Accesskontrol Krabsen <usenet@krabsen.dk> - 2020-05-08 14:50 +0200
Re: Accesskontrol Bertel Lund Hansen <gadekryds@lundhansen.dk> - 2020-05-08 17:56 +0200
Re: Accesskontrol Jan Hansen <jhjjhjhhansen@gmail.com> - 2020-05-08 19:09 +0200
Re: Accesskontrol Kim Ludvigsen <kim@kimsside.dk> - 2020-05-08 19:21 +0200
Re: Accesskontrol Jan Hansen <jhjjhjhhansen@gmail.com> - 2020-05-08 20:03 +0200
Re: Accesskontrol Bertel Lund Hansen <gadekryds@lundhansen.dk> - 2020-05-08 19:29 +0200
Re: Accesskontrol Jan Hansen <jhjjhjhhansen@gmail.com> - 2020-05-08 20:13 +0200
Re: Accesskontrol Arne Vajhøj <arne@vajhoej.dk> - 2020-05-08 14:34 -0400
Re: Accesskontrol Arne Vajhøj <arne@vajhoej.dk> - 2020-05-08 14:30 -0400
Re: Accesskontrol Krabsen <usenet@krabsen.dk> - 2020-05-10 08:21 +0200
Re: Accesskontrol Arne Vajhøj <arne@vajhoej.dk> - 2020-05-10 10:20 -0400
Re: Accesskontrol Krabsen <usenet@krabsen.dk> - 2020-05-11 08:35 +0200
Re: Accesskontrol Arne Vajhøj <arne@vajhoej.dk> - 2020-05-11 09:34 -0400
Re: Accesskontrol Martin Larsen <martin+spamfree+larsen@bigfoot.com> - 2020-05-11 15:42 +0200
Re: Accesskontrol Martin Larsen <martin+spamfree+larsen@bigfoot.com> - 2020-05-09 10:47 +0200
Re: Accesskontrol Jan Hansen <jhjjhjhhansen@gmail.com> - 2020-05-09 15:27 +0200
Re: Accesskontrol Martin Larsen <martin+spamfree+larsen@bigfoot.com> - 2020-05-10 00:47 +0200
Re: Accesskontrol Jan Hansen <jan_hansen@sniper-pistol.com> - 2020-08-02 13:04 +0200
Re: Accesskontrol "Dennis Munding" <nospa@mplease.dk> - 2020-08-02 15:22 +0000
Re: Accesskontrol Jan Hansen <jan_hansen@sniper-pistol.com> - 2020-08-02 17:57 +0200
Re: Accesskontrol Martin Larsen <martin+spamfree+larsen@bigfoot.com> - 2020-08-05 12:24 +0200
Re: Accesskontrol Arne Vajhøj <arne@vajhoej.dk> - 2020-08-06 16:05 -0400
Re: Accesskontrol Jan Hansen <jan_hansen@sniper-pistol.com> - 2020-08-07 10:19 +0200
Re: Accesskontrol Jan Hansen <jan_hansen@sniper-pistol.com> - 2020-08-07 09:55 +0200
Re: Accesskontrol Martin Larsen <martin+spamfree+larsen@bigfoot.com> - 2020-08-07 23:55 +0200
Re: Accesskontrol Jan Hansen <jan_hansen@sniper-pistol.com> - 2020-08-08 11:42 +0200
Re: Accesskontrol Martin Larsen <martin+spamfree+larsen@bigfoot.com> - 2020-08-09 11:28 +0200
Re: Accesskontrol Bertel Lund Hansen <gadekryds@lundhansen.dk> - 2020-05-07 19:37 +0200
Re: Accesskontrol Jan Hansen <jhjjhjhhansen@gmail.com> - 2020-05-07 22:38 +0200
Re: Accesskontrol Bertel Lund Hansen <gadekryds@lundhansen.dk> - 2020-05-08 07:23 +0200
Re: Accesskontrol Jan Hansen <jhjjhjhhansen@gmail.com> - 2020-05-08 11:06 +0200
Re: Accesskontrol Bertel Lund Hansen <gadekryds@lundhansen.dk> - 2020-05-08 11:40 +0200
Re: Accesskontrol Jan Hansen <jhjjhjhhansen@gmail.com> - 2020-05-16 17:38 +0200
Re: Accesskontrol Arne Vajhøj <arne@vajhoej.dk> - 2020-05-16 12:12 -0400
Re: Accesskontrol Jan Hansen <jhjjhjhhansen@gmail.com> - 2020-05-16 18:57 +0200
Re: Accesskontrol Bertel Lund Hansen <gadekryds@lundhansen.dk> - 2020-05-16 18:13 +0200
Re: Accesskontrol Jan Hansen <jhjjhjhhansen@gmail.com> - 2020-05-16 18:46 +0200
Re: Accesskontrol Bertel Lund Hansen <gadekryds@lundhansen.dk> - 2020-05-16 19:29 +0200
Re: Accesskontrol Jan Hansen <jhjjhjhhansen@gmail.com> - 2020-05-16 19:42 +0200
Re: Accesskontrol Bertel Lund Hansen <gadekryds@lundhansen.dk> - 2020-05-17 11:03 +0200
Re: Accesskontrol Bertel Lund Hansen <gadekryds@lundhansen.dk> - 2020-05-16 18:44 +0200
Re: Accesskontrol Bertel Lund Hansen <gadekryds@lundhansen.dk> - 2020-05-21 16:39 +0200
Re: Accesskontrol Bertel Lund Hansen <gadekryds@lundhansen.dk> - 2020-05-21 16:45 +0200
Re: Accesskontrol Jan Hansen <jhjjhjhhansen@gmail.com> - 2020-05-21 18:25 +0200
Re: Accesskontrol Jan Hansen <jhjjhjhhansen@gmail.com> - 2020-05-21 18:53 +0200
Re: Accesskontrol Bertel Lund Hansen <gadekryds@lundhansen.dk> - 2020-05-21 20:25 +0200
Re: Accesskontrol Jan Hansen <jhjjhjhhansen@gmail.com> - 2020-05-22 13:24 +0200
Re: Accesskontrol Bertel Lund Hansen <gadekryds@lundhansen.dk> - 2020-05-23 11:46 +0200
Re: Accesskontrol Erik Ginnerskov <egin@mail.dk> - 2020-08-09 17:39 +0200
csiph-web