fbrower1 wrote:
I have v2.0.2 installed and looks to be working, but getting messages like:
Warning: Undefined variable $new_limits in /hermes/bosnacweb08/bosnacweb08ap/b876/d5.fbrower/public_html/piwigo/plugins/bot_protection/admin/bot_protection_admin.php on line 1079
At top part of Window. I have uninstalled ByB and re-installed, same issue. Doesn't look to be affecting it working, but though I'd let you know. Not sure if anyone else is getting it.
I have even removed uninstalled BYB and removed the folder through FTP and re-installed, same issue.
Hello fbrower1,
Thanks for reporting this. The warning does not affect BYB’s functionality, but it should not appear.
If possible, please send me a screenshot (and your PHP version + Piwigo version) so I can reproduce it and fix it.
You can also use the built-in “Feedback & Error report” form in Tab 9 (Settings) to submit the details directly from BYB.
Thank you!
Best regards,
Olaf – BYB | Block You Bots
Offline
https://www.fbrower.com/byb_error.jpg
Screenshot of errors received.
Tried sending Feedback through BYB, but received similar Warning messages. Not sure if the same.
PHP version: 8.4.7
Piwigo 16.2(just upgraded). Was receing same errors in 16.1
BYB version: 2.0.2
Let me know if you need anything else.
Offline
fbrower1 wrote:
https://www.fbrower.com/byb_error.jpg
Screenshot of errors received.
Tried sending Feedback through BYB, but received similar Warning messages. Not sure if the same.
PHP version: 8.4.7
Piwigo 16.2(just upgraded). Was receing same errors in 16.1
BYB version: 2.0.2
Let me know if you need anything else.
Hello fbrower1
Thanks for the report and the details!
I’ve fixed this issue and it will be included in the next BYB update.
In the meantime, I will post a link to bot_protection_admin.zip.
Please unzip it and replace only this file:
/plugins/bot_protection/admin/bot_protection_admin.php
bot_protection_admin.zip
Best regards,
Olaf – BYB | Block You Bots
Offline
Thank you very much. Just replaced the file and it's working fine, no warning messages.
Offline
Schneider-Fotografie wrote:
if you block Bingbot in “Blocked User-Agents”, then you don’t need to also allow it via the whitelist — that would conflict.
If you want to allow Bingbot, don’t add it to “Blocked User-Agents”. Instead, just enable Bingbot once under “Allowed bot access settings” (optional: set a daily limit).
If you don’t want Bingbot at all, simply leave it disabled — and usually you don’t need to add it manually to “Blocked User-Agents”.
Just some feedback, and my personal opinion.
If the User-Agent is in the block under Blocked User-Agents in the Bot List Tab, it should not be mentioned in the Whitelist Tab under Allowed bot access settings. This indeed gives a conflict.
And I though it would block suspicious traffic. So normally Bingbot would be allowed, right?
Because I did not add it in the Bot List Tab, I though there is no need to add it to the Whitelist Tab.
But now I understand, if you do not add it to the Whitelist Tab, it's blocked by default?
And what if I do not want to set any Daily Limit? What do I need to do?
Thanks,
Matthijs
Offline
matthys wrote:
Schneider-Fotografie wrote:
if you block Bingbot in “Blocked User-Agents”, then you don’t need to also allow it via the whitelist — that would conflict.
If you want to allow Bingbot, don’t add it to “Blocked User-Agents”. Instead, just enable Bingbot once under “Allowed bot access settings” (optional: set a daily limit).
If you don’t want Bingbot at all, simply leave it disabled — and usually you don’t need to add it manually to “Blocked User-Agents”.Just some feedback, and my personal opinion.
If the User-Agent is in the block under Blocked User-Agents in the Bot List Tab, it should not be mentioned in the Whitelist Tab under Allowed bot access settings. This indeed gives a conflict.
And I though it would block suspicious traffic. So normally Bingbot would be allowed, right?
Because I did not add it in the Bot List Tab, I though there is no need to add it to the Whitelist Tab.
But now I understand, if you do not add it to the Whitelist Tab, it's blocked by default?
And what if I do not want to set any Daily Limit? What do I need to do?
Thanks,
Matthijs
Hi Matthijs,
thanks for the clear feedback — I think the misunderstanding comes from what the Whitelist tab is actually used for in BYB.
1) "Blocked User-Agents" vs "Whitelist"
Bot List -> Blocked User-Agents is a manual hard block list.
If you put Bingbot there, it will be blocked, even if you also tick it in the Whitelist.
Recommendation: don’t put the same bot in both places. If it’s blocked, remove it from the Whitelist (or vice versa).
Whitelist -> Allowed bot access is for known bots you want to treat as "allowed bots" (e.g. Googlebot/Bingbot).
This is mainly important if you enabled stricter protection rules like "block traffic with missing referrer/cookies".
Many real bots don’t send cookies, so without whitelisting they can get caught by that rule.
2) "Is Bingbot blocked by default if I don’t whitelist it?"
Not "blocked by default" in general, but it will be treated like normal traffic.
So depending on your settings (especially the cookie/referrer rule), it can be blocked even if it’s a legitimate bot.
If you want Bingbot to crawl normally:
Step 1: Make sure Bingbot is NOT in "Blocked User-Agents".
Step 2: Tick Bingbot in the Whitelist ("Allowed bot access").
3) "What if I don’t want any Daily Limit?"
In BYB, a Daily Limit starts only from 1. There is no "0" option.
If you do not want any Daily Limit, simply leave the checkbox unticked.
Summary:
Case A: Whitelist checked and limit >= 1 -> allowed with a daily quota.
Case B: Whitelist NOT checked -> no daily limit active (bot is treated like normal traffic and may be blocked by strict rules).
Case C: Bot is in "Blocked User-Agents" -> always blocked.
Hope that clears it up!
One question, Matthijs: do you want to block Bingbot, allow it, or are you simply testing the system?
Best regards,
Olaf – BYB | Block You Bots
Offline
Thanks for explaining but (sorry) still one question.
You write:
Case B: Whitelist NOT checked -> no daily limit active (bot is treated like normal traffic and may be blocked by strict rules).
There is no way to Whitelist a bot with no Daily Limit? Or a very high number?
BTW .. I enter 99999999999999999999 after save it says: 9223372036854775807
And I would be nice that bots mention in the Blocked User-Agents, do not show-up in the Allowed bot access settings. That part is confusing me....
You write "If it’s blocked, remove it from the Whitelist (or vice versa)." but what you mean is; when blocked, do not enable it in the Allowed bot access settings, right?
Offline
matthys wrote:
Thanks for explaining but (sorry) still one question.
You write:
Case B: Whitelist NOT checked -> no daily limit active (bot is treated like normal traffic and may be blocked by strict rules).
There is no way to Whitelist a bot with no Daily Limit? Or a very high number?
BTW .. I enter 99999999999999999999 after save it says: 9223372036854775807
And I would be nice that bots mention in the Blocked User-Agents, do not show-up in the Allowed bot access settings. That part is confusing me....
You write "If it’s blocked, remove it from the Whitelist (or vice versa)." but what you mean is; when blocked, do not enable it in the Allowed bot access settings, right?
Hi Matthijs, no worries — here’s the exact logic in BYB:
“Allowed bot access” and “Daily limit” belong together. If you enable a bot there, it always has a limit (even if you set it very high). There is currently no separate “unlimited whitelist” option in that section.
About the number you entered: 9223372036854775807 is the maximum value of a signed 64-bit integer, so anything higher will be saved as that max value.
Regarding the “Blocked User-Agents” vs “Allowed bot access” confusion: those are two independent lists. “Blocked User-Agents” is a hard block list (always blocked). “Allowed bot access” is an allow list (mainly to avoid strict rules like missing cookies/referrer). So if a bot is hard-blocked, you should not enable it in “Allowed bot access”. If you want to allow it, remove it from “Blocked User-Agents” and enable it in “Allowed bot access” instead.
Just a fun note: if Bingbot ever reaches that limit, please contact NASA. We may have discovered faster-than-light crawling. :-)
Best regards,
Olaf – BYB | Block You Bots
Last edited by Schneider-Fotografie (2026-01-02 17:55:46)
Offline
Hello Piwigo Community,
BYB | Bot Protection v2.0.3 is now available.
This is a small bug-fixing release to improve stability and fix reported issues.
I’m not releasing v2.3.0 yet — I want to test it thoroughly first before pushing a bigger update. I don’t want to release too early and then create unnecessary follow-up fixes.
As always: after updating, please clear your caches:
- Piwigo: Tools → Maintenance → Clear compiled templates
- Browser: Ctrl + F5 (hard reload)
You can still post questions, feedback, and bug reports here in the forum thread.
Best regards,
Olaf – BYB | Block You Bots
Last edited by Schneider-Fotografie (2026-01-05 10:55:24)
Offline
After updating to v2.0.3, it's blocking piwigong again. In log file says missing referr cookies.
EDIT: I whitelisted: PiwigoNG/2.4.2 and it started working again.
Last edited by fbrower1 (2026-01-07 01:39:19)
Offline
What happened to the plugin? I can't find it any more in the list of available plugins.
Offline
OHappyDay wrote:
What happened to the plugin? I can't find it any more in the list of available plugins.
Hello OHappyDay
What did you do? Is bot_protection still in the /plugins/ folder?
I had this problem 14 days ago, and it involved all activated plugins from the list. I couldn't activate any of the plugins, only delete them.
Best regards,
Olaf – BYB | Block You Bots
Last edited by Schneider-Fotografie (2026-01-10 21:00:06)
Offline
Two minor annoyances, both related to the little widget that appears on the dashboard: https://imgur.com/a/UOQeAdj
First is related to the positioning of the widget. The widget's position is user-configurable, which I appreciate. It defaults to the first position, but then I manually move it to the end. After some (but not all) updates, it forgets where I put it and reverts to the default position again, necessitating that I move it back to where it belongs. Wasn't sure if anyone was aware of this behavior, but it does make me cringe whenever I see an update come through, wondering if it will forget where it's supposed to be.
Other thing is the separator on the number of bots blocked. I know that using a dot as a thousands separator (and a comma as the decimal point) is a common European practice, but being an American, where it's reversed, that screws with my head, as I can't help but think that it is telling me, as in my screenshot, that 44 and 219 thousandths of a bot were blocked, rather than over 44000 bots blocked. Is it possible to have a setting to where we can set it to commas for thousands and the period for the decimal point?
Like I said, minor annoyances, but I thought that I'd bring them to your attention.
Offline
I disabled the plugin because piwigoNG would'nt connect. Afterwards I reactivated it again but it was then completely useless. Clicking on settings to get to the screen of BYB was answered with an error message and I was not able to work with the plugin.
Therefore I uninstalled the plugin and wanted it to reinstall but searching for the plugin did not return any result so I cannot install it any more ....
This was the resulting URL when I tried to access the settings page: https://photos.krtschil.net/admin.php?p … ion-backup
Klaus
Last edited by OHappyDay (2026-01-10 21:08:15)
Offline
Ok, I could get it back by manually downloading the zip file from piwigo.org and transfer the folder to my server. It works again.
Offline