Hi everyone,
welcome to the official support thread for **BYB | Bot Protection** (free plugin).
Please use this topic for:
- Questions / help
- Bug reports (please include details so I can reproduce it)
- Feature requests / suggestions
BYB is a **free community plugin** that I develop in my spare time, so constructive feedback is always appreciated.
---------------------------------------
How to report a bug (important)
---------------------------------------
Please include:
- Piwigo version:
- Theme (if relevant):
- BYB version:
- What you expected vs. what happened:
- Relevant log lines (copy/paste):
- Your BYB settings (which options/tabs are enabled):
The more concrete the report, the faster I can identify and fix issues.
---------------------------------------
Whitelist / limits note
---------------------------------------
Whitelist and daily limits are managed via the plugin’s admin tabs.
Manual edits in data files (e.g. whitelist/limits TXT/JSON) may be overwritten when saving in the admin UI.
If you need persistent custom entries, please post it here as a feature request.
---------------------------------------
Thanks
---------------------------------------
Thanks to everyone testing BYB and sharing feedback.
Best regards,
Olaf
Offline
I recently encountered two issues with BYB that I should bring to your attention.
First: I was using the unrelated "Write Metadata" plugin in order to add the photo metadata in the site to IPTC tags in the image files themselves. When I did an operation on this, it generated a lot of server activity, and BYB blocked it under its flood protection policies, which broke the operation that I was trying to complete. This happened despite that flood protection was explicitly turned off. The way that I worked around this was to turn flood protection on and set the number to like a million billion requests per minute, and that made it work properly. I have since found the setting to whitelist my own IP address, but this is still a bug.
Second: I am not able to turn the BYB plugin off, which I tried to do in order to get around the flood protection. When I went to deactivate it, I got an error message, and then when I reloaded the page, it was still active.
Here are my environment details:
Piwigo 16.1.0 Check for upgrade
Installed on 12 July 2024, 1 year 5 months 1 week 5 days ago
Operating system: Linux (container)
PHP: 8.2.29 (Show info) [2025-12-25 15:56:09]
MySQL: 8.0.41-0ubuntu0.22.04.1 [2025-12-25 15:56:09]
Graphics Library: External ImageMagick 6.9.11-60
Cache size 29631.78 Mo calculated 1 month ago Refresh
Last edited by SchuminWeb (2025-12-26 00:57:12)
Offline
Happy user just wanting to follow the thread.
Offline
SchuminWeb wrote:
I recently encountered two issues with BYB that I should bring to your attention.
First: I was using the unrelated "Write Metadata" plugin in order to add the photo metadata in the site to IPTC tags in the image files themselves. When I did an operation on this, it generated a lot of server activity, and BYB blocked it under its flood protection policies, which broke the operation that I was trying to complete. This happened despite that flood protection was explicitly turned off. The way that I worked around this was to turn flood protection on and set the number to like a million billion requests per minute, and that made it work properly. I have since found the setting to whitelist my own IP address, but this is still a bug.
Second: I am not able to turn the BYB plugin off, which I tried to do in order to get around the flood protection. When I went to deactivate it, I got an error message, and then when I reloaded the page, it was still active.
Here are my environment details:
Piwigo 16.1.0 Check for upgrade
Installed on 12 July 2024, 1 year 5 months 1 week 5 days ago
Operating system: Linux (container)
PHP: 8.2.29 (Show info) [2025-12-25 15:56:09]
MySQL: 8.0.41-0ubuntu0.22.04.1 [2025-12-25 15:56:09]
Graphics Library: External ImageMagick 6.9.11-60
Cache size 29631.78 Mo calculated 1 month ago Refresh
Hi SchuminWeb,
thanks for the detailed report and the environment information.
1) “Write Metadata” triggering a block
“Write Metadata” performs a very intensive batch operation (often via webservice/AJAX calls) and can generate traffic patterns that look like automated scanning or abuse. In that situation, BYB may react and block requests to protect the gallery. This is not a defect in the sense of “Flood OFF doesn’t work”, but rather a side effect of running a high-frequency bulk task.
2) Deactivating BYB shows an error / plugin stays active
This can happen if your current IP ends up in BYB’s temporary ban list during that batch run. Piwigo’s deactivation request is then rejected, and Piwigo only shows a generic “an error occurred” message. You are not locked out of your gallery; the admin area remains accessible. Removing the IP from the ban list (or whitelisting it) immediately restores normal deactivation behavior.
Planned improvement (next update)
To make this smoother for admin/batch workflows, I will adjust BYB so that logged-in admin operations (including bulk tools like metadata writing) are excluded from protection enforcement. That way, these maintenance tasks won’t be interrupted and you won’t run into deactivation issues during such operations.
Best workaround right now: whitelist your own admin IP before running metadata/bulk tools.
Best regards
Olaf (BYB | Block You Bots)
Offline
Katryne wrote:
Happy user just wanting to follow the thread.
Thank you, Katryne ;-)
Offline
Programming it to ignore logged-in user actions is a good solution. Looking forward to when that update comes down.
Offline
Hi all,
quick update regarding heavy admin/batch workflows (e.g. metadata writing tools).
Some plugins (like “Write Metadata”) can generate extremely high-frequency requests (often via ws.php / AJAX / plugin endpoints). That traffic can look like automated abuse and may trigger protection mechanisms during maintenance tasks.
What I changed in BYB | Bot Protection (v2.0.1)
- Logged-in admin/webmaster actions are now ignored globally, not only “admin.php” pages.
This includes ws.php/AJAX/plugin endpoints used by bulk tools.
- Manual temporary bans (Tab 6) still apply (these are meant to be “hard” for safety).
- Added a “Notaus / Emergency OFF” switch (failsafe) to temporarily disable enforcement if needed during maintenance.
Recommended workflow for bulk tools
- Best practice: whitelist your own admin IP before running heavy jobs.
- If you run into unexpected blocks during maintenance: use the Emergency OFF switch temporarily, run the job, then re-enable protection.
This keeps the gallery protected in normal operation, while maintenance/batch tools can run smoothly.
Important (otherwise you may still see “old” versions):
- Piwigo: Tools → Maintenance → Clear compiled templates
- Browser: Ctrl+F5
BYB | Bot Protection v2.0.1 is the last update for this year. Starting tomorrow, I’ll be on vacation.
You can still post questions, feedback, and criticism here in the forum as usual — I’ll read everything and will get back to you when I can.
Best regards
Olaf (BYB | Block You Bots)
Last edited by Schneider-Fotografie (2025-12-26 20:58:11)
Offline
I'm not sure, but still want to mention this:
I was sure I disabled the News Ticker under settings, but after automatic upgrade from 2.0.0 to 2.0.1 it was enabled again.
Thanks Olaf for your quick follow-up ;-)
PS .. it would be nice if the Feedback & Bug Report part already contains the correct (Piwigo and BYB) version used by the system. Of course you need to be able to change ... but nice if it already knows from which environment you send this.
(corrected typo)
Last edited by matthys (2025-12-27 16:34:30)
Offline
matthys wrote:
I'm not sure, but still want to mention this:
I was sure I disabled the News Ticker under settings, but after automatic upgrade from 2.0.0 to 2.0.1 it was enabled again.
Thanks Olaf for your quick follow-up ;-)
PS .. it would be nice if the Feedback & Bug Report part already contains the correct (Piwigo and BYB) version used by the system. Of course you need to be able to change ... but nice if it already knows from which environment you send this.
(corrected typo)
Hello Matthys
You’re right — that was caused by defaults being applied again during the update.
I’ve changed the settings handling so that existing user/admin settings are never overwritten during upgrades. Only new keys are added if they are missing.
So if you disabled the News Ticker, it will stay disabled after updates.
PS: Good idea about the Feedback & Bug Report form. I’ll pre-fill it with the detected Piwigo version and BYB version (editable of course), so reports automatically include the environment.
Thanks for the heads-up!
Best regards
Olaf (BYB | Block You Bots)
Offline
It's true that I noticed that the news ticker had started scrolling from right to left instead of left to right after the update. This is truly outrageous behavior on BYB's part, and I don't know how I can continue to use it after such a lack of respect for the user. (Just kidding: I wanted to say: thanks again to Olaf for his availability.)
Offline
Katryne wrote:
It's true that I noticed that the news ticker had started scrolling from right to left instead of left to right after the update. This is truly outrageous behavior on BYB's part, and I don't know how I can continue to use it after such a lack of respect for the user. (Just kidding: I wanted to say: thanks again to Olaf for his availability.)
Haha :-) guilty as charged — the ticker direction switch was a “major scandal”! ;-)
Seriously: thanks for spotting it. The ticker settings are now handled upgrade-safe:
your personal settings (including direction, enabled/disabled, speed, etc.) won’t be overwritten by updates anymore — only new keys are added if missing.
Thanks again for your feedback and your humor!
Olaf – BYB | Block You Bots
Offline
Hi Piwigo community,
Quick summary of the most important changes:
- Upgrade-safe settings: Your enabled/disabled options will no longer be overwritten during updates.
- Bot limits: Default limits and saved limits are merged correctly (saved values always win).
- Version issue fixed: The plugin version is now updated correctly in the Piwigo database again.
- Feedback & Bug Report: Prefilled fields work reliably, values are kept on errors, and system details (Piwigo/BYB/PHP/URL) are sent automatically.
- smaller changes and improvements to bot detection have been added
Best regards,
Olaf – BYB | Block You Bots
Last edited by Schneider-Fotografie (2025-12-28 16:57:30)
Offline
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.
Offline
I have some questions about 2.0.2 as well but maybe I just do not understand.
Under the Whitelist Tab the note says "Aliases are handled automatically etc".
Not sure what this mean. I had bingbot blocked, which I didn't understand why.
So I added this in the User-Agent Whitelist part, so it would not be blocked.
Now, after 2.0.2, I have it twice in the Allowed bot access settings as:
bingbot
Bingbot
Which, or course, are the same.
I also do not understand this setting.
It's under Allowed bot access settings and you can enable it and you can set Daily Limit.
So, does Enable mean allow bot access, or enable Daily Limit, or both?
And why would you allow it (bot access), as the same name is also in the Blocked User-Agents Label under Bot List Tab?
But as I said, maybe I just do not understand (sorry).
Last edited by matthys (2025-12-29 19:26:00)
Offline
matthys wrote:
I have some questions about 2.0.2 as well but maybe I just do not understand.
Under the Whitelist Tab the note says "Aliases are handled automatically etc".
Not sure what this mean. I had bingbot blocked, which I didn't understand why.
So I added this in the User-Agent Whitelist part, so it would not be blocked.
Now, after 2.0.2, I have it twice in the Allowed bot access settings as:
bingbot
Bingbot
Which, or course, are the same.
I also do not understand this setting.
It's under Allowed bot access settings and you can enable it and you can set Daily Limit.
So, does Enable mean allow bot access, or enable Daily Limit, or both?
And why would you allow it (bot access), as the same name is also in the Blocked User-Agents Label under Bot List Tab?
But as I said, maybe I just do not understand (sorry).
Hi Matthys,
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”.
Best regards,
Olaf – BYB | Block You Bots
Offline