•  » Extensions
  •  » BYB | Bot Protection – Questions, bug reports, feature requests

#46 2026-03-27 05:20:14

Katryne
Member
2016-12-03
564

Re: BYB | Bot Protection – Questions, bug reports, feature requests

Hello Olaf ! I've also noticed these tiny letters since version 2.4.1. That wasn't the case in version 2.3x.
Have a nice day.
Katryne


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

Offline

 

#47 2026-03-27 21:22:56

OHappyDay
Member
2023-02-08
194

Re: BYB | Bot Protection – Questions, bug reports, feature requests

Another thing that bothers me:

The newsticker is running in the wrong direction. It is running from left to right which means that you have to read the sentences starting at the end.

Thanks

Offline

 

#48 2026-03-27 21:29:06

Katryne
Member
2016-12-03
564

Re: BYB | Bot Protection – Questions, bug reports, feature requests

Direction, speed and other settings of the news sticker can be modified in the last tab of the plugin.


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

Offline

 

#49 2026-03-28 11:01:43

Schneider-Fotografie
Member
Berlin
2023-04-16
149

Re: BYB | Bot Protection – Questions, bug reports, feature requests

Hello,

yes, that’s correct. In line 258, the font size is set to `5px` (`font-size:5px;`), which affects two tabs.

It should be set to `12px` (`font-size:12px;`) or higher.

css:

Code:

/* Table: Layout & Spacing */
.bot-info-table {
  width: 60%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 12px;
}

You can either edit the affected line yourself or download the corrected style.zip file here.

Please replace the file with the corrected version. After that, refresh the page with **Ctrl + F5** to make sure the updated stylesheet is loaded.

Thank you.

Have a nice day,
Olaf


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

Offline

 

#50 2026-03-28 12:06:27

Katryne
Member
2016-12-03
564

Re: BYB | Bot Protection – Questions, bug reports, feature requests

Merci Olaf, c'est parfait.


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

Offline

 

#51 2026-03-28 14:58:53

OHappyDay
Member
2023-02-08
194

Re: BYB | Bot Protection – Questions, bug reports, feature requests

Thanks too and I didn't notice that the newsticker can be managed in the settings tab.

Offline

 

#52 2026-03-28 23:04:33

Schneider-Fotografie
Member
Berlin
2023-04-16
149

Re: BYB | Bot Protection – Questions, bug reports, feature requests

Hi everyone,
the corrected version 2.4.2 is now online.

Olaf – BYB | Block You Bots


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

Offline

 

#53 2026-03-30 13:26:15

abravorus
Member
2015-03-03
67

Re: BYB | Bot Protection – Questions, bug reports, feature requests

Hello,

For some reasons I'm not able to change now IP-addresses of all visitors of my Piwigo gallery are 127.0.0.1.
So, blocking bots by IP is not my case.

I included 127.0.0.1 in the IP's White list and excluded it from Blocked IPs list. Nevertheless this address appears in Blocked IPs list immediately (I guess when new visitor comes). And I have reports from visitors that gallery responds with 403 error.

Is it possible to exclude 127.0.0.1 address from Blocked IPs list forever?
The bots' blocking itself works very effective.

BYB version is 2.4.2, installed yesterday.
Piwigo 16.3.0
PHP 8.2.0

Thanks,
  Alexandr

Offline

 

#54 2026-03-30 14:16:02

Schneider-Fotografie
Member
Berlin
2023-04-16
149

Re: BYB | Bot Protection – Questions, bug reports, feature requests

Hello Alexandr,

thank you very much for your message.

Yes, if all visitors are shown as 127.0.0.1, then IP-based blocking is not reliable in your server environment, because normal visitors and bots appear with the same IP address.

In this case, adding 127.0.0.1 to the allowed IP list should prevent this address from being treated like a normal blocked visitor IP. Bot detection itself can still continue independently, so protection is not completely lost.

I will review this behavior again to make sure 127.0.0.1 does not cause legitimate visitors to receive a 403 error in such setups.

Thank you for reporting this important case.

Best regards,
Olaf


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

Offline

 

#55 2026-03-30 14:40:03

abravorus
Member
2015-03-03
67

Re: BYB | Bot Protection – Questions, bug reports, feature requests

Hello Olaf,

Thank you very much.

In my case, but this is for sure not the universal rule, the real IP of each visitor is written into the header X-Real-IP
PHP shows it as $_SERVER['HTTP_X_REAL_IP']

Alexandr

Last edited by abravorus (2026-03-30 15:00:16)

Offline

 

#56 2026-04-04 14:48:45

abravorus
Member
2015-03-03
67

Re: BYB | Bot Protection – Questions, bug reports, feature requests

Hello Olaf,

I decided to play a little bit with BYB plugin on weekend and I have two questions:

1) Is it correct that function "bp_current_ip()" is the only point where current ip-address defined?

2) Does the plugin's code cached somehow in Piwigo or PHP environment and if yes what should I do to renew the code after the change of source code?

I've made a very simple change in function bp_current_ip() by changing $_SERVER['REMOTE_ADDR'] to $_SERVER['HTTP_X_REAL_IP'] (which I can check independently by phpinfo()), but in BYB control panel I still see the same ip-address equal to  $_SERVER['REMOTE_ADDR']

Thanks,
  Alexandr

Offline

 

#57 2026-04-04 16:19:23

Schneider-Fotografie
Member
Berlin
2023-04-16
149

Re: BYB | Bot Protection – Questions, bug reports, feature requests

abravorus wrote:

Hello Olaf,

I decided to play a little bit with BYB plugin on weekend and I have two questions:

1) Is it correct that function "bp_current_ip()" is the only point where current ip-address defined?

2) Does the plugin's code cached somehow in Piwigo or PHP environment and if yes what should I do to renew the code after the change of source code?

I've made a very simple change in function bp_current_ip() by changing $_SERVER['REMOTE_ADDR'] to $_SERVER['HTTP_X_REAL_IP'] (which I can check independently by phpinfo()), but in BYB control panel I still see the same ip-address equal to  $_SERVER['REMOTE_ADDR']

Thanks,
  Alexandr

Hello Alexandr,

thank you for your feedback.

To better understand your setup, I have a few short questions:

* What kind of server or hosting package are you using for your Piwigo installation?
* Is it normal shared hosting, a VPS / vServer, a dedicated server, or something else?
* Are you using Apache, nginx, or a combination of both?
* Is there any reverse proxy, load balancer, Cloudflare, or similar proxy service in front of Piwigo?
* How exactly is Piwigo installed on your side?
* Is it installed directly in your webspace, in a subfolder, through a hosting panel, or in a special server environment?

This is important because `X-Real-IP` is usually only available and useful in certain proxy or server configurations.

Olaf


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

Offline

 

#58 2026-04-04 17:15:34

abravorus
Member
2015-03-03
67

Re: BYB | Bot Protection – Questions, bug reports, feature requests

Hello Olaf,

Many thanks for your answer.

Could you please write me to alexandr.bravo @ gmail.com or give your e-mail?
And I provide you with all the details.

I'm not sure that everybody are interested in all these details...

Alexandr

Offline

 
  •  » Extensions
  •  » BYB | Bot Protection – Questions, bug reports, feature requests

Board footer

Powered by FluxBB

github linkedin newsletter Piwigo.org © 2002-2026 · Contact