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
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
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
Offline
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
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.
Offline
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
Thanks for the coming update. It is a really great plugin.
Offline
Thank you Olaf
Offline
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
Strange. My update went smooth.
Try to uninstall it first and reinstall it again.
Offline
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
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. 
Last edited by OHappyDay (2025-12-15 11:14:26)
Offline
Thank you very much. It worked, without needing to whitelist anything.
Offline