•  » Extensions
  •  » BYB - Bot protection - complaint

#1 2025-11-26 11:56:37

OHappyDay
Member
2023-02-08
199

BYB - Bot protection - complaint

Hi all,

first, the plugin works fine overall but I have a complaint:

I have two additional bots that I want to whitelist:

* Wget: to allow a script to run for generating missing thumbnails
* Dart: to allow access for Piwigo NG on mobile devices

Thats what I noticed:

* After upgrading Piwigo and reenabling BYB the previous settings for my above bots where gone (not visible in the configuration page) and all other adjustments (e.g. allowing Googlebot more than the default limit) where on default values
* The files "whitelisted_bots.txt and bot_limits.json still contained the configuration from before but obviously where not recognized
* On the configuration page "Whitelist" I simply clicked the button to save the configuration settings. This caused the two files from above to be reset to default values (my adjustments were also removed)
* Then I edited the two files to my needs and reloaded the configuration page and alas, my adjustments are now respected and Wget and Piwigo NG where working now as expected
* Adding the two bots to the User-Agent-Whitelist at the bottom of the configuration page does not have any effect ...

To the author: please review your workflows regarding this and make adjustments so that the files are read by the plugin. Otherwise I have to go through this tedious procedure again and again ...

Thanks
Klaus

Last edited by OHappyDay (2025-11-26 12:11:48)

Offline

 

#2 2025-12-02 12:30:15

matthys
Member
2014-04-02
212

Re: BYB - Bot protection - complaint

Yes, I agree. An easy way for adding addition bots to block or even be flexible to whitelist would be desired.

I also have a problem with the plugin PersoAbout in combination with this plugin. If I want to edit and submit I get "Error code: 403 Forbidden". Turning the "YB | Bot Protection" plugin off, solved the problem and I was able to submit my changes in PersoAbout.

Offline

 

#3 2025-12-02 12:52:15

Katryne
Member
Provence, France
2016-12-03
612

Re: BYB - Bot protection - complaint

Hi !
I also encountered a temporary issue with PiwigoNG yesterday and had to whitelist my phone's IP address in BYB in order to upload a photo. But it seems that my mobile IP address is not fixed, so I will have to repeat this process the next time I use it. How can I authorize the PiwigoNG and Piwigo apps once and for all?
Thank you
Katryne


https://album.chauvigne.info/ v.16.4  PHP: 8.4.23
Système d'exploitation: Linux - Hébergeur 1&1-Ionos - MySQL: 5.7.42
Bibliothèque graphique: External ImageMagick 6.9.11-60

Offline

 

#4 2025-12-02 16:22:18

OHappyDay
Member
2023-02-08
199

Re: BYB - Bot protection - complaint

As long as the upload from your mobile device sends a unique User Agent string you can use that to add that UA to the white list of BYB.
PiwigoNG sends the UA: "Dart" by which I can successfully whitelist it. You can check this through the bot_log.txt logfile.

Offline

 

#5 2025-12-02 16:57:39

Katryne
Member
Provence, France
2016-12-03
612

Re: BYB - Bot protection - complaint

Ah yes, I see "ua=Dart/3.9 (dart:io)" in the logs. And you say Dart is the user agent to be added.
I tried something with the white list for user agent, but I do not understand the syntax.


https://album.chauvigne.info/ v.16.4  PHP: 8.4.23
Système d'exploitation: Linux - Hébergeur 1&1-Ionos - MySQL: 5.7.42
Bibliothèque graphique: External ImageMagick 6.9.11-60

Offline

 

#6 2025-12-02 22:49:15

OHappyDay
Member
2023-02-08
199

Re: BYB - Bot protection - complaint

You have to add the new entry for the whitelist manually on the server first:

- Add the UA string "Dart" to whitelisted_bots.txt
- Add an entry to bot_limits.json (beware of correct syntax in the JSON file):

  "Dart": {
        "enabled": true,
        "max_per_day": 10000
    }

Next step: go to the configuration page of BYB: the tab "Whitelist": it should now contain the new entry for "Dart" with the limits as entered in the above step.

Caution: If you hit the "Save settings" button for the whitelisted bots section you will loose your manually entered edits and you have to repeat the above steps again!!!!

Regarding this there is room for emprovement for the BYB plugin. Hopefully the developer does read this thread.

Offline

 

#7 2025-12-04 10:54:49

OHappyDay
Member
2023-02-08
199

Re: BYB - Bot protection - complaint

Thanks for the coming update. It is a really great plugin.

Offline

 

#8 2025-12-04 23:23:04

Katryne
Member
Provence, France
2016-12-03
612

Re: BYB - Bot protection - complaint

Thank you Olaf


https://album.chauvigne.info/ v.16.4  PHP: 8.4.23
Système d'exploitation: Linux - Hébergeur 1&1-Ionos - MySQL: 5.7.42
Bibliothèque graphique: External ImageMagick 6.9.11-60

Offline

 

#9 2025-12-05 00:15:10

OHappyDay
Member
2023-02-08
199

Re: BYB - Bot protection - complaint

Thanks

Offline

 

#10 2025-12-05 10:47:32

matthys
Member
2014-04-02
212

Re: BYB - Bot protection - complaint

I do not get it; for this plugin I always get: All plugins are up to date.

Do I have to install manually every time there is a new version?
Currently I have Version 1.7.0

Offline

 

#11 2025-12-05 12:52:45

OHappyDay
Member
2023-02-08
199

Re: BYB - Bot protection - complaint

Strange. My update went smooth.
Try to uninstall it first and reinstall it again.

Offline

 

#12 2025-12-05 15:42:15

matthys
Member
2014-04-02
212

Re: BYB - Bot protection - complaint

This is what I have, running Piwigo 15.7.0:

Under Plugins I see BYB Version 1.7.0:
https://i.ibb.co/TDWZzSzF/Clipboard-12-05-2025-01.jpg

But under Plugins -> Check for updates, I have this (no updates - all up to date):
https://i.ibb.co/3m0v24yF/Clipboard-12-05-2025-02.jpg

And under Tools -> Updates -> Extensions, I also have no updates:
https://i.ibb.co/NnSw2W7n/Clipboard-12-05-2025-03.jpg

Any clue?

Offline

 

#13 2025-12-14 22:39:14

fbrower1
Member
2025-12-14
6

Re: BYB - Bot protection - complaint

I have version 1.9.6 of BYB and v16.1 of Piwigo.  I have added Dart/  to my whitelisted_bots.txt and the limit to bot_limits.json file.  When opening Piwigo NG on my phone, I still get Authentication failed, and in the BYB log fil, it says REJECTED: Limits exceeded.  If I turn off BYB, all works fine.  I tried removing BYB and re-adding it, and still same results.  On the whitelist page in BYB settings, if I add Dart UA, and daily limit as 0, it hs no effect at all.  Any ideas on what else to try?

Offline

 

#14 2025-12-15 11:10:21

OHappyDay
Member
2023-02-08
199

Re: BYB - Bot protection - complaint

You should be able to check in the settings of BYB.
Go to the whitelist tab. There you should see an entry for Dart and the limits as entered into the bot_limits.json file.

https://www.krtschil.net/images/dart.png

Last edited by OHappyDay (2025-12-15 11:14:26)

Offline

 

#15 2025-12-16 20:42:35

fbrower1
Member
2025-12-14
6

Re: BYB - Bot protection - complaint

Thank you very much.  It worked, without needing to whitelist anything.

Offline

 
  •  » Extensions
  •  » BYB - Bot protection - complaint

Board footer

Powered by FluxBB