Announcement

#1 2024-05-02 07:48:58

Schneider-Fotografie
Member
Berlin
2023-04-16
29

Geoblocking

Hello

I installed AStat2 some time ago. I noticed that over 200 IP addresses are saved within an hour. The IP addresses come from all over the world. My questions now are:

1) Does PIWIGO have a connection to any servers?

2) How can I stop this?
I have an Internet provider that has not installed the mod_geoip module, so I don't have to block it using the .htaccess file. (Within the EU, etc., there is no longer any geoblocking - geoblocking is prohibited!) What can I do in this case?

3) Piwigo takes longer to load than other websites. What could be the reason for this? I tested it and found out that it makes no difference whether I have 1200 photos on my website or just one photo. My photo files are not large. It can't be the plugins either, because I only have two plugins installed on my test platform. Is the problem with my Internet provider or with access from unknown IPs?

Thank you for your help
Olaf

Online

 

#2 2024-05-02 16:40:58

erAck
Only trying to help
2015-09-06
2064

Re: Geoblocking

200 IP addresses per hour isn't that much.. (I have 300-400 per hour). Loads of search engine bots and vulnerability scanners are continuously scraping the entire web. If you are concerned about traffic consumption or them slowing down your server or otherwise want to lock them out, then inspect the Apache log file and find common criteria to forbid access in .htaccess using SetEnvIf Remote_Addr ... and Deny from env=..., or RewriteCond %{REMOTE_ADDR} ... (and/or any other condition) and RewriteRule .* - [F,L]

If it's only about bot IPs appearing in the stats there's also [extension by plg] No Stats For Robots that might exclude some known bots (my 300-400 are already without those).

Also, GeoIp blocking probably wouldn't help at all (as you noticed, they are from all over the world) or rather may be harmful because it would block innocent people as well.

There are some continuously updated IP block lists against reported malicious IPs available on the net, for that you'd have to install some service or such and talk to your hosting provider. See for example https://app.crowdsec.net/cti or https://www.abuseipdb.com/ or https://www.ipvoid.com/ip-blacklist-check/ for examples.


Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2024-05-02 18:01:29

Schneider-Fotografie
Member
Berlin
2023-04-16
29

Re: Geoblocking

OK, then I know. Thank you for your answer.

Online

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact