Hi everyone,
I’m the developer of the BYB | Bot Protection plugin for Piwigo and I’d like to make sure that official Piwigo apps and clients are correctly detected and not accidentally blocked as bots.
Piwigo NG (user agent e.g. Dart/3.9 (dart:io)) is already handled in the new version of BYB | Bot Protection and is no longer blocked or slowed down by the protection mechanisms (no-referrer / cookie check / flood protection).
My questions:
- Which official or Piwigo-recommended apps currently exist
- that connect directly to a self-hosted Piwigo gallery (not only piwigo.com),
- and, if known, what are their User-Agents or typical access paths (e.g. ws.php, specific upload endpoints)?
The goal is to build a proper whitelist / special handling in BYB | Bot Protection so that uploads, syncs and logins from these official clients always work smoothly without weakening the bot protection itself.
Thanks a lot for any hints and examples!
Olaf - BYB | Block You Bots - Bot Protection
Offline
Recently implemented in [Github] Piwigo commit 545cad35 to get statistics about 3rd party apps connecting to Piwigo
$apps_pattern = array(
'Piwigo iOS' => '/^Piwigo\/\d+ CFNetwork/',
'Piwigo NG' => '/^Dart\/[\d\.]+ \(dart:io\)$/',
'Piwigo Android' => '/^Piwigo-Android/',
'Lightroom' => '/Lightroom/',
'Piwigo Remote Sync' => '/(PiwigoRemoteSync|Apache-HttpClient)/',
'darktable' => '/darktable/',
'Piwigo Client' => '/PiwigoClient/',
'Aperture' => '/ApertureToPiwigoPlugIn/',
'MacShare' => '/MacShareToPiwigo/',
'WordPress' => '/WordPress/',
'pLoader' => '/pLoader/',
);Offline
plg wrote:
Recently implemented in [Github] Piwigo commit 545cad35 to get statistics about 3rd party apps connecting to Piwigo
Code:
$apps_pattern = array( 'Piwigo iOS' => '/^Piwigo\/\d+ CFNetwork/', 'Piwigo NG' => '/^Dart\/[\d\.]+ \(dart:io\)$/', 'Piwigo Android' => '/^Piwigo-Android/', 'Lightroom' => '/Lightroom/', 'Piwigo Remote Sync' => '/(PiwigoRemoteSync|Apache-HttpClient)/', 'darktable' => '/darktable/', 'Piwigo Client' => '/PiwigoClient/', 'Aperture' => '/ApertureToPiwigoPlugIn/', 'MacShare' => '/MacShareToPiwigo/', 'WordPress' => '/WordPress/', 'pLoader' => '/pLoader/', );
Thanks for your help plg!
Olaf
Offline