•  » Beta testing
  •  » Public Beta: Bot Protection Plugin for Piwigo

#46 2025-07-08 05:34:26

chillygator
Member
2025-07-07
3

Re: Public Beta: Bot Protection Plugin for Piwigo

Schneider-Fotografie wrote:

...

Hi Nathan,

you almost did it right, but the whitelisted_bots.txt file only works if your app’s User-Agent exactly contains “Dart” or “Piwigo”. Many apps use different User-Agent strings.

....

Best regards,
Olaf

I'm embarrassed to say this but I guess I have to report so it doesn't mess anyone else up.  The lines I said I wrote in the whitelisted_bots.txt file actually worked, i.e.

Dart
Piwigo

The reason it wasn't working for me before is that I managed to misspell Dart.  I had the word Data in my file rather than Dart.

I checked the log file and it reports various strings along with:

"BLOCKED: Missing referer and cookies" and "UA: Dart/3.6 (dart:io)"

As such, I believe either of the following in whitelisted_bots.txt would have worked:

Dart
or
Dart/

--Nathan

Offline

 

#47 2025-07-27 12:06:36

linkingpin
Member
2023-04-24
36

Re: Public Beta: Bot Protection Plugin for Piwigo

Hi Olaf,

great plugin, thank for developing it, I was looking for some protection against bots.

Bots come and go, I was wondering, are you planning to keep the Known Bots list and the Whitelist in your plugin up to date, and with reccomendations ?

It looks like the whitelist is checked before the blocklist ?
So what if I block a bot, and in a next version of the plugin it shows up in your default whitelist, which setting prefers ?

Offline

 

#48 2025-07-27 22:43:04

Schneider-Fotografie
Member
Berlin
2023-04-16
151

Re: Public Beta: Bot Protection Plugin for Piwigo

linkingpin wrote:

Hi Olaf,

great plugin, thank for developing it, I was looking for some protection against bots.

Bots come and go, I was wondering, are you planning to keep the Known Bots list and the Whitelist in your plugin up to date, and with reccomendations ?

It looks like the whitelist is checked before the blocklist ?
So what if I block a bot, and in a next version of the plugin it shows up in your default whitelist, which setting prefers ?

Hi linkingpin,

I was really annoyed by bots too – but now I’ve got everything under control!

That’s what led me to develop thisBot  system.

To your questions:
The whitelist is where you put search engines and IPs that you explicitly want to allow – and you can remove them at any time.

The bot list is for bots you want to block – and of course, you can adjust that whenever needed.

If you want more information about bots, feel free to visit my website or just get in touch:

www.blockyoubots.com - Block You Bots
„Bots denied. Humans welcomed." :-)


-Schneider-Photography- Gallery
----------------------------------
BYB | Block You Bots
„Stay human. I block the rest.“

Offline

 

#49 2025-07-28 12:58:00

linkingpin
Member
2023-04-24
36

Re: Public Beta: Bot Protection Plugin for Piwigo

Thanks Olaf,

indeed a lot of useful information about bots on your website, especially the list at your page https://www.blockyoubots.com/botinfo.php
I will scan thru the list and add the "block immediately" to my blocklist.

I understand there are good bots and bad bots, it depends just how you personnaly look at it.
If you have a commercial site or you want everyone to see your photos and videos, then bots that will put your website and it's content high on search result lists are welcome.
For me, I just want to keep my photos and exif data private, so a bot like Google (image) search is not welcome.

Offline

 

#50 2025-07-29 13:51:51

linkingpin
Member
2023-04-24
36

Re: Public Beta: Bot Protection Plugin for Piwigo

Is there a way to set a limit on the size of the logfile ?

After 24 hours it's size is 234 MB, Total bot blocks: 1119

I do not have access to that particular server and can't install something like logrotate.

Offline

 

#51 2025-07-29 14:13:16

Schneider-Fotografie
Member
Berlin
2023-04-16
151

Re: Public Beta: Bot Protection Plugin for Piwigo

linkingpin wrote:

Is there a way to set a limit on the size of the logfile ?

After 24 hours it's size is 234 MB, Total bot blocks: 1119

I do not have access to that particular server and can't install something like logrotate.

You can reset everything! Log File, Bot Stats, Whitelist, Visitors and Blocked IPs.
You can't put limits on it.


-Schneider-Photography- Gallery
----------------------------------
BYB | Block You Bots
„Stay human. I block the rest.“

Offline

 

#52 2025-08-03 09:55:03

linkingpin
Member
2023-04-24
36

Re: Public Beta: Bot Protection Plugin for Piwigo

How far can a bot penetrate into Piwigo ?

With no speficic restrictions in the webserver, not in htaccess, not by modbits and without this plugin, can a bot traverse through the Piwigo galleries dictionary leeching our photos ?

Offline

 

#53 2025-08-04 09:48:20

Schneider-Fotografie
Member
Berlin
2023-04-16
151

Re: Public Beta: Bot Protection Plugin for Piwigo

linkingpin wrote:

How far can a bot penetrate into Piwigo ?

With no speficic restrictions in the webserver, not in htaccess, not by modbits and without this plugin, can a bot traverse through the Piwigo galleries dictionary leeching our photos ?

Yes, of course, a bot can do that. Without server-level restrictions or a protection plugin, bots can crawl through all public albums and pictures in Piwigo – especially if URLs are predictable and no access limits are in place.

With my standalone Bot Protect system, this kind of dictionary-based leeching is reliably blocked. It detects and stops unknown bots, enforces referrer and cookie checks, rate-limits aggressive crawlers, and logs every request – even for direct image links.


-Schneider-Photography- Gallery
----------------------------------
BYB | Block You Bots
„Stay human. I block the rest.“

Offline

 

#54 2025-08-06 13:49:50

erAck
Only trying to help
2015-09-06
2235

Re: Public Beta: Bot Protection Plugin for Piwigo

I observed an oddity with the Bot Protection 1.1 plugin I installed, additionally to _data/bot_protection/ it created a plugins/rv_akismet/_data/bot_protection/ directory with similar initial content, and updates plugins/rv_akismet/_data/bot_protection/visitor_stats.json there. There seems to be some "current working directory" issue in some context likely when [extension by rvelices] RV Akismet is running.


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

Offline

 

#55 2025-08-17 11:44:25

linkingpin
Member
2023-04-24
36

Re: Public Beta: Bot Protection Plugin for Piwigo

Hi Olaf,

would it be possible to use a wildcard in the blocked filter list ?

As an example, I am now blocking some bots with almost identical names like:
SemrushBot
SemrushBot-BA
SemrushBot-BM
SemrushBot-COUB
SemrushBot-CT
SemrushBot-SI
SemrushBot-SWA
SemrushBot/7~bl

Could you adapt your plugin that one entry SemrushBot* would be sufficient to block all those bots ?

Offline

 

#56 2025-08-17 19:05:18

Schneider-Fotografie
Member
Berlin
2023-04-16
151

Re: Public Beta: Bot Protection Plugin for Piwigo

linkingpin wrote:

Hi Olaf,

would it be possible to use a wildcard in the blocked filter list ?

As an example, I am now blocking some bots with almost identical names like:
SemrushBot
SemrushBot-BA
SemrushBot-BM
SemrushBot-COUB
SemrushBot-CT
SemrushBot-SI
SemrushBot-SWA
SemrushBot/7~bl

Could you adapt your plugin that one entry SemrushBot* would be sufficient to block all those bots ?

Hi linkingpin,

thank you for your suggestion! Starting with the new Bot Protection v1.0.2 (Preview) you can now use wildcards (*) in the blocklist.

Example:
SemrushBot* will automatically block all variants like SemrushBot-BA, SemrushBot-SWA, or SemrushBot/7~bl.

The preview version v1.0.2 is available for free in the Free Downloads section at www.blockyoubots.com

Your feedback is very welcome!

Olaf


-Schneider-Photography- Gallery
----------------------------------
BYB | Block You Bots
„Stay human. I block the rest.“

Offline

 

#57 2025-08-17 21:33:29

linkingpin
Member
2023-04-24
36

Re: Public Beta: Bot Protection Plugin for Piwigo

Thank you for the update.

I understand this version is not available on the Piwigo Extensions site, but is available on Bot Protection Plugin v1.0.2 ?

I will download and install the preview and check the outcome.
.

Offline

 

#58 2025-08-18 22:02:28

linkingpin
Member
2023-04-24
36

Re: Public Beta: Bot Protection Plugin for Piwigo

Hi Olaf,

I haven't been able to find the time to install the new version of your plugin yet because I had a small issue with my Piwigo installation that I wanted to solve first.

However, I now have the idea that the problem with my Piwigo could be related to the bot protection plugin.

Would you mind looking into it? I've described it on the Piwigo Forum.
.

Offline

 

#59 2025-08-18 22:14:48

Schneider-Fotografie
Member
Berlin
2023-04-16
151

Re: Public Beta: Bot Protection Plugin for Piwigo

linkingpin wrote:

Hi Olaf,

I haven't been able to find the time to install the new version of your plugin yet because I had a small issue with my Piwigo installation that I wanted to solve first.

However, I now have the idea that the problem with my Piwigo could be related to the bot protection plugin.

Would you mind looking into it? I've described it on the Piwigo Forum.
.

Hi linkingpin
In style.css, change line 45 to: background-color: #096a09;

Last edited by Schneider-Fotografie (2025-08-18 22:16:31)


-Schneider-Photography- Gallery
----------------------------------
BYB | Block You Bots
„Stay human. I block the rest.“

Offline

 

#60 2025-08-18 22:22:54

linkingpin
Member
2023-04-24
36

Re: Public Beta: Bot Protection Plugin for Piwigo

Yes that did the trick, thanks.

Will you include this in your latest version of your plugin ?
.

Offline

 
  •  » Beta testing
  •  » Public Beta: Bot Protection Plugin for Piwigo

Board footer

Powered by FluxBB