%s. La secció escrita per versions anteriors permet a qualsevol que no estigui bloquejat saltar-se els altres controls d'accés d'aquest directori (protecció amb contrasenya, restriccions d'IP). Feu que el fitxer es pugui escriure i torneu a executar l'actualització, o elimineu a mà les línies entre '# BEGIN BFStop Blocks' i '# END BFStop Blocks'."
+PLG_SYSTEM_BFSTOP_UPDATE_MIGRATION_FAILED="Brute Force Stop no ha pogut migrar la seva configuració i les seves dades durant l'actualització (%s). Fins que no es resolgui, el connector funciona amb la configuració per defecte: reviseu la configuració i torneu a executar l'actualització."
PLG_SYSTEM_BFSTOP_SITE_ADDRESS_NOT_SET="(adreça del lloc no configurada)"
PLG_SYSTEM_BFSTOP_LOGIN_UNAVAILABLE="Ara mateix no és possible iniciar la sessió. Torneu-ho a provar d'aquí a uns minuts."
PLG_SYSTEM_BFSTOP_UNINSTALL_HTACCESS_NOT_REMOVED="Brute Force Stop no ha pogut treure la seva secció de bloquejos de %s: el servidor web continua rebutjant les adreces que conté. Feu que el fitxer es pugui escriure i traieu a mà les línies entre '# BEGIN BFStop Blocks' i '# END BFStop Blocks'."
diff --git a/plugin/language/de-DE/de-DE.plg_system_bfstop.ini b/plugin/language/de-DE/de-DE.plg_system_bfstop.ini
index 559e584..1b396b8 100644
--- a/plugin/language/de-DE/de-DE.plg_system_bfstop.ini
+++ b/plugin/language/de-DE/de-DE.plg_system_bfstop.ini
@@ -15,6 +15,7 @@ PLG_SYSTEM_BFSTOP_BLOCKED_CLIENT_IP="Deine IP-Adresse ist: %s."
PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_HINT="Dieses Update auf Version 2.0.0 bringt umfangreiche Änderungen an der Konfiguration mit. Die Konfiguration wurde aus der Plugin-Verwaltung in die BFStop-Komponente verlegt - bitte öffne die Ansicht „Einstellungen“ der Komponente und überprüfe deine Einstellungen - insbesondere den Abschnitt „Proxy / Load-Balancer“, falls deine Website hinter einem Reverse-Proxy oder Load-Balancer läuft."
PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_API_HINT="Brute Force Stop schützt jetzt auch Logins über die Web-Services-API von Joomla! (api/index.php, mit API-Token oder HTTP-Basic-Authentifizierung), und dieses Update hat das eingeschaltet: fehlgeschlagene Logins dort zählen für die Sperre, und gesperrte Adressen werden auch von der API abgewiesen. Falls eine Ihrer Anbindungen die API von einer Adresse aus nutzt, deren Logins fehlschlagen können, prüfen Sie die Einstellung 'Aktiv für' in der Einstellungsansicht der Komponente."
PLG_SYSTEM_BFSTOP_UPDATE_HTACCESS_NOT_REWRITTEN="Brute Force Stop konnte seinen Sperrabschnitt in %s nicht neu schreiben. Der von früheren Versionen geschriebene Abschnitt lässt alle, die nicht gesperrt sind, an den anderen Zugriffsbeschränkungen dieses Verzeichnisses vorbei (Passwortschutz, IP-Beschränkungen). Machen Sie die Datei beschreibbar und führen Sie das Update erneut aus, oder entfernen Sie die Zeilen zwischen '# BEGIN BFStop Blocks' und '# END BFStop Blocks' von Hand."
+PLG_SYSTEM_BFSTOP_UPDATE_MIGRATION_FAILED="Brute Force Stop konnte seine Einstellungen und Daten beim Update nicht übernehmen (%s). Bis das behoben ist, arbeitet das Plugin mit seinen Standardeinstellungen: Prüfen Sie die Einstellungen und führen Sie das Update erneut aus."
PLG_SYSTEM_BFSTOP_SITE_ADDRESS_NOT_SET="(Adresse der Website nicht eingestellt)"
PLG_SYSTEM_BFSTOP_LOGIN_UNAVAILABLE="Anmelden ist gerade nicht möglich. Bitte versuchen Sie es in ein paar Minuten erneut."
PLG_SYSTEM_BFSTOP_UNINSTALL_HTACCESS_NOT_REMOVED="Brute Force Stop konnte seinen Sperr-Abschnitt nicht aus %s entfernen: der Webserver weist die Adressen darin weiter ab. Machen Sie die Datei beschreibbar und entfernen Sie die Zeilen zwischen '# BEGIN BFStop Blocks' und '# END BFStop Blocks' von Hand."
diff --git a/plugin/language/en-GB/en-GB.plg_system_bfstop.ini b/plugin/language/en-GB/en-GB.plg_system_bfstop.ini
index 4c6ac65..d14c9b6 100644
--- a/plugin/language/en-GB/en-GB.plg_system_bfstop.ini
+++ b/plugin/language/en-GB/en-GB.plg_system_bfstop.ini
@@ -15,6 +15,7 @@ PLG_SYSTEM_BFSTOP_BLOCKED_CLIENT_IP="Your IP address is: %s."
PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_HINT="This update to version 2.0.0 comes with major configuration changes. Configuration has moved out of the Plugin Manager into the BFStop component - please go to the component's Settings view and review your settings - in particular the 'Proxy / Load Balancer' section if your site sits behind a reverse proxy or load balancer."
PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_API_HINT="Brute Force Stop now also protects logins through Joomla's Web Services API (api/index.php, with API tokens or HTTP Basic authentication), and this update has switched that on: failed logins there count towards blocking, and blocked addresses are rejected by the API too. If an integration of yours uses the API from an address whose logins may fail, check the 'Active for' setting in the component's Settings view."
PLG_SYSTEM_BFSTOP_UPDATE_HTACCESS_NOT_REWRITTEN="Brute Force Stop could not rewrite its block section in %s. The section written by earlier versions lets everybody who isn't blocked past the other access controls of that directory (password protection, IP restrictions). Make the file writable and run the update again, or remove the lines between '# BEGIN BFStop Blocks' and '# END BFStop Blocks' by hand."
+PLG_SYSTEM_BFSTOP_UPDATE_MIGRATION_FAILED="Brute Force Stop could not migrate its settings and data during the update (%s). The plugin works with its default settings until this is fixed: check the settings, and run the update again."
PLG_SYSTEM_BFSTOP_SITE_ADDRESS_NOT_SET="(site address not configured)"
PLG_SYSTEM_BFSTOP_LOGIN_UNAVAILABLE="Logging in is not possible right now. Please try again in a few minutes."
PLG_SYSTEM_BFSTOP_UNINSTALL_HTACCESS_NOT_REMOVED="Brute Force Stop could not remove its block section from %s: the web server goes on refusing the addresses in it. Make the file writable and remove the lines between '# BEGIN BFStop Blocks' and '# END BFStop Blocks' by hand."
diff --git a/plugin/language/es-ES/es-ES.plg_system_bfstop.ini b/plugin/language/es-ES/es-ES.plg_system_bfstop.ini
index b275b44..f405979 100644
--- a/plugin/language/es-ES/es-ES.plg_system_bfstop.ini
+++ b/plugin/language/es-ES/es-ES.plg_system_bfstop.ini
@@ -17,6 +17,7 @@ PLG_SYSTEM_BFSTOP_BLOCKED_CLIENT_IP="Su dirección IP es: %s."
PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_HINT="Esta actualización a la versión 2.0.0 incluye cambios importantes en la configuración. La configuración se ha trasladado del Gestor de plugins al componente BFStop: vaya a la vista Ajustes del componente y revise sus ajustes, en particular la sección «Proxy / Balanceador de carga» si su sitio está detrás de un proxy inverso o de un balanceador de carga."
PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_API_HINT="Brute Force Stop ahora también protege los inicios de sesión a través de la API de servicios web de Joomla! (api/index.php, con tokens de API o autenticación HTTP Basic), y esta actualización lo ha activado: los inicios de sesión fallidos allí cuentan para el bloqueo y las direcciones bloqueadas también son rechazadas por la API. Si alguna de tus integraciones usa la API desde una dirección cuyos inicios de sesión pueden fallar, revisa el ajuste 'Activo para' en la vista de configuración del componente."
PLG_SYSTEM_BFSTOP_UPDATE_HTACCESS_NOT_REWRITTEN="Brute Force Stop no pudo reescribir su sección de bloqueos en %s. La sección escrita por versiones anteriores permite a cualquiera que no esté bloqueado saltarse los demás controles de acceso de ese directorio (protección por contraseña, restricciones de IP). Haz que el archivo se pueda escribir y vuelve a ejecutar la actualización, o elimina a mano las líneas entre '# BEGIN BFStop Blocks' y '# END BFStop Blocks'."
+PLG_SYSTEM_BFSTOP_UPDATE_MIGRATION_FAILED="Brute Force Stop no pudo migrar su configuración y sus datos durante la actualización (%s). Hasta que se resuelva, el plugin funciona con su configuración predeterminada: revisa la configuración y vuelve a ejecutar la actualización."
PLG_SYSTEM_BFSTOP_SITE_ADDRESS_NOT_SET="(dirección del sitio no configurada)"
PLG_SYSTEM_BFSTOP_LOGIN_UNAVAILABLE="No es posible iniciar sesión en este momento. Inténtalo de nuevo dentro de unos minutos."
PLG_SYSTEM_BFSTOP_UNINSTALL_HTACCESS_NOT_REMOVED="Brute Force Stop no pudo quitar su sección de bloqueos de %s: el servidor web sigue rechazando las direcciones que contiene. Haga el archivo escribible y quite a mano las líneas entre '# BEGIN BFStop Blocks' y '# END BFStop Blocks'."
diff --git a/plugin/language/fr-FR/fr-FR.plg_system_bfstop.ini b/plugin/language/fr-FR/fr-FR.plg_system_bfstop.ini
index 6fd4529..4115fa6 100644
--- a/plugin/language/fr-FR/fr-FR.plg_system_bfstop.ini
+++ b/plugin/language/fr-FR/fr-FR.plg_system_bfstop.ini
@@ -19,6 +19,7 @@ PLG_SYSTEM_BFSTOP_BLOCKED_CLIENT_IP="Votre address IP est: %s."
PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_HINT="Cette mise à jour vers la version 2.0.0 apporte des changements importants de configuration. La configuration a quitté le Gestionnaire de plugins pour le composant BFStop : veuillez ouvrir la vue Configuration du composant et vérifier vos paramètres, en particulier la section « Proxy / Répartiteur de charge » si votre site se trouve derrière un proxy inverse ou un répartiteur de charge."
PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_API_HINT="Brute Force Stop protège désormais aussi les connexions via l'API des services web de Joomla! (api/index.php, avec des jetons d'API ou l'authentification HTTP Basic), et cette mise à jour l'a activé : les échecs de connexion y comptent pour le blocage, et les adresses bloquées sont aussi refusées par l'API. Si l'une de vos intégrations utilise l'API depuis une adresse dont les connexions peuvent échouer, vérifiez le paramètre 'Activé pour' dans la vue Paramètres du composant."
PLG_SYSTEM_BFSTOP_UPDATE_HTACCESS_NOT_REWRITTEN="Brute Force Stop n'a pas pu réécrire sa section de blocage dans %s. La section écrite par les versions précédentes laisse passer toute personne non bloquée au-delà des autres contrôles d'accès de ce répertoire (protection par mot de passe, restrictions IP). Rendez le fichier accessible en écriture et relancez la mise à jour, ou supprimez à la main les lignes entre '# BEGIN BFStop Blocks' et '# END BFStop Blocks'."
+PLG_SYSTEM_BFSTOP_UPDATE_MIGRATION_FAILED="Brute Force Stop n'a pas pu migrer ses paramètres et ses données lors de la mise à jour (%s). Tant que ce n'est pas corrigé, le plugin fonctionne avec ses paramètres par défaut : vérifiez les paramètres et relancez la mise à jour."
PLG_SYSTEM_BFSTOP_SITE_ADDRESS_NOT_SET="(adresse du site non configurée)"
PLG_SYSTEM_BFSTOP_LOGIN_UNAVAILABLE="La connexion n'est pas possible pour le moment. Veuillez réessayer dans quelques minutes."
PLG_SYSTEM_BFSTOP_UNINSTALL_HTACCESS_NOT_REMOVED="Brute Force Stop n'a pas pu retirer sa section de blocage de %s : le serveur web continue de refuser les adresses qu'elle contient. Rendez le fichier accessible en écriture et retirez à la main les lignes entre '# BEGIN BFStop Blocks' et '# END BFStop Blocks'."
diff --git a/plugin/language/it-IT/it-IT.plg_system_bfstop.ini b/plugin/language/it-IT/it-IT.plg_system_bfstop.ini
index 83c7a05..1bb4af0 100644
--- a/plugin/language/it-IT/it-IT.plg_system_bfstop.ini
+++ b/plugin/language/it-IT/it-IT.plg_system_bfstop.ini
@@ -15,6 +15,7 @@ PLG_SYSTEM_BFSTOP_BLOCKED_CLIENT_IP="Il tuo indirizzo IP è: %s."
PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_HINT="Questo aggiornamento alla versione 2.0.0 comporta importanti modifiche alla configurazione. La configurazione è stata spostata dal Gestore dei plugin al componente BFStop: apri la vista Configurazione del componente e controlla le tue impostazioni, in particolare la sezione «Proxy / Bilanciatore di carico» se il tuo sito si trova dietro un reverse proxy o un bilanciatore di carico."
PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_API_HINT="Brute Force Stop ora protegge anche gli accessi tramite la API dei servizi web di Joomla! (api/index.php, con token API o autenticazione HTTP Basic), e questo aggiornamento lo ha attivato: gli accessi falliti lì contano per il blocco e gli indirizzi bloccati vengono respinti anche dalla API. Se una tua integrazione usa la API da un indirizzo i cui accessi possono fallire, controlla l'impostazione 'Attivo per' nella vista Impostazioni del componente."
PLG_SYSTEM_BFSTOP_UPDATE_HTACCESS_NOT_REWRITTEN="Brute Force Stop non è riuscito a riscrivere la sua sezione di blocco in %s. La sezione scritta dalle versioni precedenti permette a chiunque non sia bloccato di superare gli altri controlli di accesso di quella directory (protezione con password, restrizioni IP). Rendi il file scrivibile ed esegui di nuovo l'aggiornamento, oppure rimuovi a mano le righe tra '# BEGIN BFStop Blocks' e '# END BFStop Blocks'."
+PLG_SYSTEM_BFSTOP_UPDATE_MIGRATION_FAILED="Brute Force Stop non è riuscito a migrare le sue impostazioni e i suoi dati durante l'aggiornamento (%s). Finché non viene risolto, il plugin funziona con le impostazioni predefinite: controlla le impostazioni ed esegui di nuovo l'aggiornamento."
PLG_SYSTEM_BFSTOP_SITE_ADDRESS_NOT_SET="(indirizzo del sito non configurato)"
PLG_SYSTEM_BFSTOP_LOGIN_UNAVAILABLE="Al momento non è possibile accedere. Riprova tra qualche minuto."
PLG_SYSTEM_BFSTOP_UNINSTALL_HTACCESS_NOT_REMOVED="Brute Force Stop non è riuscito a togliere la sua sezione dei blocchi da %s: il server web continua a rifiutare gli indirizzi che contiene. Rendi il file scrivibile e togli a mano le righe tra '# BEGIN BFStop Blocks' e '# END BFStop Blocks'."
diff --git a/plugin/language/nl-NL/nl-NL.plg_system_bfstop.ini b/plugin/language/nl-NL/nl-NL.plg_system_bfstop.ini
index 9b75903..3121d90 100644
--- a/plugin/language/nl-NL/nl-NL.plg_system_bfstop.ini
+++ b/plugin/language/nl-NL/nl-NL.plg_system_bfstop.ini
@@ -15,6 +15,7 @@ PLG_SYSTEM_BFSTOP_BLOCKED_CLIENT_IP="Uw IP-adres is: %s."
PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_HINT="Deze update naar versie 2.0.0 brengt ingrijpende wijzigingen in de configuratie met zich mee. De configuratie is verhuisd van de Pluginbeheerder naar de BFStop-component - ga naar de weergave Instellingen van de component en controleer je instellingen, met name het onderdeel 'Proxy / Load balancer' als je site achter een reverse proxy of load balancer staat."
PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_API_HINT="Brute Force Stop beschermt nu ook aanmeldingen via de webservices-API van Joomla! (api/index.php, met API-tokens of HTTP Basic-authenticatie), en deze update heeft dat ingeschakeld: mislukte aanmeldingen daar tellen mee voor blokkering en geblokkeerde adressen worden ook door de API geweigerd. Als een van uw koppelingen de API gebruikt vanaf een adres waarvan aanmeldingen kunnen mislukken, controleer dan de instelling 'Activeer detectie voor' in de instellingenweergave van de component."
PLG_SYSTEM_BFSTOP_UPDATE_HTACCESS_NOT_REWRITTEN="Brute Force Stop kon zijn blokkeersectie in %s niet herschrijven. De sectie die eerdere versies schreven laat iedereen die niet geblokkeerd is langs de andere toegangscontroles van die map (wachtwoordbeveiliging, IP-beperkingen). Maak het bestand schrijfbaar en voer de update opnieuw uit, of verwijder de regels tussen '# BEGIN BFStop Blocks' en '# END BFStop Blocks' met de hand."
+PLG_SYSTEM_BFSTOP_UPDATE_MIGRATION_FAILED="Brute Force Stop kon zijn instellingen en gegevens bij de update niet overzetten (%s). Tot dit is opgelost werkt de plugin met zijn standaardinstellingen: controleer de instellingen en voer de update opnieuw uit."
PLG_SYSTEM_BFSTOP_SITE_ADDRESS_NOT_SET="(adres van de site niet ingesteld)"
PLG_SYSTEM_BFSTOP_LOGIN_UNAVAILABLE="Inloggen is op dit moment niet mogelijk. Probeer het over een paar minuten opnieuw."
PLG_SYSTEM_BFSTOP_UNINSTALL_HTACCESS_NOT_REMOVED="Brute Force Stop kon zijn blokkadesectie niet uit %s verwijderen: de webserver blijft de adressen erin weigeren. Maak het bestand schrijfbaar en verwijder de regels tussen '# BEGIN BFStop Blocks' en '# END BFStop Blocks' met de hand."
diff --git a/plugin/language/pt-BR/pt-BR.plg_system_bfstop.ini b/plugin/language/pt-BR/pt-BR.plg_system_bfstop.ini
index f013e1f..c33370b 100644
--- a/plugin/language/pt-BR/pt-BR.plg_system_bfstop.ini
+++ b/plugin/language/pt-BR/pt-BR.plg_system_bfstop.ini
@@ -19,6 +19,7 @@ PLG_SYSTEM_BFSTOP_BLOCKED_CLIENT_IP="Seu endereço IP é: %s."
PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_HINT="Esta atualização para a versão 2.0.0 traz grandes mudanças na configuração. A configuração saiu do Gerenciador de plugins e foi para o componente BFStop - acesse a visualização Configurações do componente e revise suas configurações, em especial a seção 'Proxy / Balanceador de carga' se o seu site estiver atrás de um proxy reverso ou de um balanceador de carga."
PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_API_HINT="O Brute Force Stop agora também protege os logins pela API de serviços web do Joomla! (api/index.php, com tokens de API ou autenticação HTTP Basic), e esta atualização ativou isso: logins com falha ali contam para o bloqueio, e endereços bloqueados também são recusados pela API. Se alguma integração sua usa a API a partir de um endereço cujos logins podem falhar, verifique a configuração 'Ativo para' na tela de configurações do componente."
PLG_SYSTEM_BFSTOP_UPDATE_HTACCESS_NOT_REWRITTEN="O Brute Force Stop não conseguiu reescrever sua seção de bloqueios em %s. A seção escrita por versões anteriores deixa qualquer pessoa que não esteja bloqueada passar pelos outros controles de acesso desse diretório (proteção por senha, restrições de IP). Torne o arquivo gravável e execute a atualização novamente, ou remova manualmente as linhas entre '# BEGIN BFStop Blocks' e '# END BFStop Blocks'."
+PLG_SYSTEM_BFSTOP_UPDATE_MIGRATION_FAILED="O Brute Force Stop não conseguiu migrar suas configurações e dados durante a atualização (%s). Até que isso seja corrigido, o plugin funciona com as configurações padrão: verifique as configurações e execute a atualização novamente."
PLG_SYSTEM_BFSTOP_SITE_ADDRESS_NOT_SET="(endereço do site não configurado)"
PLG_SYSTEM_BFSTOP_LOGIN_UNAVAILABLE="Não é possível fazer login agora. Tente novamente em alguns minutos."
PLG_SYSTEM_BFSTOP_UNINSTALL_HTACCESS_NOT_REMOVED="O Brute Force Stop não conseguiu remover sua seção de bloqueios de %s: o servidor web continua recusando os endereços nela. Torne o arquivo gravável e remova manualmente as linhas entre '# BEGIN BFStop Blocks' e '# END BFStop Blocks'."
diff --git a/plugin/language/pt-PT/pt-PT.plg_system_bfstop.ini b/plugin/language/pt-PT/pt-PT.plg_system_bfstop.ini
index 4308a64..999cb84 100644
--- a/plugin/language/pt-PT/pt-PT.plg_system_bfstop.ini
+++ b/plugin/language/pt-PT/pt-PT.plg_system_bfstop.ini
@@ -19,6 +19,7 @@ PLG_SYSTEM_BFSTOP_BLOCKED_CLIENT_IP="O seu endereço IP é: %s."
PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_HINT="Esta atualização para a versão 2.0.0 traz grandes alterações à configuração. A configuração saiu do Gestor de plugins e foi para o componente BFStop - aceda à vista Definições do componente e reveja as suas definições, em especial a secção 'Proxy / Balanceador de carga' se o seu site estiver atrás de um proxy inverso ou de um balanceador de carga."
PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_API_HINT="O Brute Force Stop agora também protege os inícios de sessão através da API de serviços web do Joomla! (api/index.php, com tokens de API ou autenticação HTTP Basic), e esta atualização ativou-o: os inícios de sessão falhados aí contam para o bloqueio e os endereços bloqueados também são recusados pela API. Se alguma integração sua usa a API a partir de um endereço cujos inícios de sessão podem falhar, verifique a definição 'Ativo para' na vista de definições do componente."
PLG_SYSTEM_BFSTOP_UPDATE_HTACCESS_NOT_REWRITTEN="O Brute Force Stop não conseguiu reescrever a sua secção de bloqueios em %s. A secção escrita por versões anteriores deixa qualquer pessoa que não esteja bloqueada passar pelos outros controlos de acesso desse diretório (proteção por palavra-passe, restrições de IP). Torne o ficheiro gravável e execute a atualização novamente, ou remova manualmente as linhas entre '# BEGIN BFStop Blocks' e '# END BFStop Blocks'."
+PLG_SYSTEM_BFSTOP_UPDATE_MIGRATION_FAILED="O Brute Force Stop não conseguiu migrar as suas definições e dados durante a atualização (%s). Até que isso seja corrigido, o plugin funciona com as definições predefinidas: verifique as definições e execute a atualização novamente."
PLG_SYSTEM_BFSTOP_SITE_ADDRESS_NOT_SET="(endereço do site não configurado)"
PLG_SYSTEM_BFSTOP_LOGIN_UNAVAILABLE="Não é possível iniciar sessão neste momento. Tente novamente dentro de alguns minutos."
PLG_SYSTEM_BFSTOP_UNINSTALL_HTACCESS_NOT_REMOVED="O Brute Force Stop não conseguiu remover a sua secção de bloqueios de %s: o servidor web continua a recusar os endereços nela. Torne o ficheiro gravável e remova manualmente as linhas entre '# BEGIN BFStop Blocks' e '# END BFStop Blocks'."
diff --git a/plugin/language/ru-RU/ru-RU.plg_system_bfstop.ini b/plugin/language/ru-RU/ru-RU.plg_system_bfstop.ini
index 6e8d76d..0f73032 100644
--- a/plugin/language/ru-RU/ru-RU.plg_system_bfstop.ini
+++ b/plugin/language/ru-RU/ru-RU.plg_system_bfstop.ini
@@ -15,6 +15,7 @@ PLG_SYSTEM_BFSTOP_BLOCKED_CLIENT_IP="Ваш IP-адрес: %s."
PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_HINT="Это обновление до версии 2.0.0 содержит серьёзные изменения в настройках. Настройки перенесены из менеджера плагинов в компонент BFStop - откройте раздел «Настройки» компонента и проверьте свои параметры, особенно секцию «Прокси / Балансировщик нагрузки», если ваш сайт работает за обратным прокси или балансировщиком нагрузки."
PLG_SYSTEM_BFSTOP_UPDATE_2_0_0_API_HINT="Brute Force Stop теперь защищает и входы через API веб-сервисов Joomla! (api/index.php, с API-токенами или HTTP Basic-аутентификацией), и это обновление включило эту защиту: неудачные входы там учитываются для блокировки, а заблокированные адреса отклоняются и API. Если какая-либо ваша интеграция использует API с адреса, входы с которого могут быть неудачными, проверьте настройку 'Активно для' в настройках компонента."
PLG_SYSTEM_BFSTOP_UPDATE_HTACCESS_NOT_REWRITTEN="Brute Force Stop не смог переписать свой раздел блокировок в %s. Раздел, записанный предыдущими версиями, позволяет всем, кто не заблокирован, обходить другие ограничения доступа этого каталога (защиту паролем, ограничения по IP). Сделайте файл доступным для записи и запустите обновление снова или удалите вручную строки между '# BEGIN BFStop Blocks' и '# END BFStop Blocks'."
+PLG_SYSTEM_BFSTOP_UPDATE_MIGRATION_FAILED="Brute Force Stop не смог перенести свои настройки и данные при обновлении (%s). Пока это не исправлено, плагин работает с настройками по умолчанию: проверьте настройки и запустите обновление снова."
PLG_SYSTEM_BFSTOP_SITE_ADDRESS_NOT_SET="(адрес сайта не настроен)"
PLG_SYSTEM_BFSTOP_LOGIN_UNAVAILABLE="Вход сейчас невозможен. Пожалуйста, попробуйте снова через несколько минут."
PLG_SYSTEM_BFSTOP_UNINSTALL_HTACCESS_NOT_REMOVED="Brute Force Stop не удалось удалить свой раздел блокировок из %s: веб-сервер продолжает отклонять адреса из него. Сделайте файл доступным для записи и удалите вручную строки между '# BEGIN BFStop Blocks' и '# END BFStop Blocks'."
diff --git a/plugin/src/Extension/Bfstop.php b/plugin/src/Extension/Bfstop.php
index 69009d4..881e6d9 100644
--- a/plugin/src/Extension/Bfstop.php
+++ b/plugin/src/Extension/Bfstop.php
@@ -89,9 +89,9 @@ public static function getSubscribedEvents(): array
);
}
- private function intParam($paramName, $default)
+ private function intParam($paramName): int
{
- return (int) $this->params->get($paramName, $default);
+ return Settings::int($this->params, $paramName);
}
private function init()
@@ -128,23 +128,23 @@ private function notifier(): NotifierHelper
if ($this->notifier === null)
{
$this->notifier = new NotifierHelper($this->logger, $this->repositories,
- $this->params->get('emailaddress', ''),
- $this->intParam('userID', -1),
- $this->intParam('userGroup', -1),
- (bool) $this->params->get('groupNotificationEnabled', false));
+ Settings::get($this->params, 'emailaddress'),
+ $this->intParam('userID'),
+ $this->intParam('userGroup'),
+ Settings::bool($this->params, 'groupNotificationEnabled'));
}
return $this->notifier;
}
private function isEnabledForCurrentOrigin()
{
- return Origin::isEnabled($this->params->get('enabledForOrigin', Settings::Defaults['enabledForOrigin']),
+ return Origin::isEnabled(Settings::get($this->params, 'enabledForOrigin'),
$this->getApplication());
}
private function trackedAddress($ipAddress)
{
- return IpHelper::trackedAddress($ipAddress, $this->intParam('ipv6PrefixLength', Settings::Defaults['ipv6PrefixLength']));
+ return IpHelper::trackedAddress($ipAddress, $this->intParam('ipv6PrefixLength'));
}
/**
@@ -153,7 +153,7 @@ private function trackedAddress($ipAddress)
*/
private function usernameForStorage($username)
{
- $mode = (string) $this->params->get('unknownUsernameMode', UsernameHelper::ModeHash);
+ $mode = Settings::string($this->params, 'unknownUsernameMode');
$isReadable = ($mode !== UsernameHelper::ModePlain) &&
($this->isAccount($username) ||
RiskHelper::isCommonUsername($this->params, $username));
@@ -243,14 +243,14 @@ public function onUserLoginFailure(LoginFailureEvent $event)
// $username is what was typed; the entry only holds a hash of it if
// it isn't an account (see usernameForStorage())
- if ((bool) $this->params->get('notifyFailedOnlyExisting', false) &&
+ if (Settings::bool($this->params, 'notifyFailedOnlyExisting') &&
!$this->isAccount($username))
{
$this->logger->log('Not notifying of failed login: the username does not belong to an account', Log::DEBUG);
}
else
{
- $this->notifier()->failedLogin($logEntry, $this->intParam('notifyFailedNumber', 0));
+ $this->notifier()->failedLogin($logEntry, $this->intParam('notifyFailedNumber'));
}
$delay = $this->policy->delaySeconds($logEntry, $riskScore);
@@ -298,26 +298,46 @@ private function block($logEntry)
private function notifyOfBlock($logEntry, $id, $duration, $targetedOtherAccounts)
{
$this->notifier()->blockedNotifyAdmin($logEntry, BlockPolicy::realDuration($duration),
- $this->intParam('notifyBlockedNumber', 5));
+ $this->intParam('notifyBlockedNumber'));
if (!$this->policy->notifiesBlockedUser())
{
return;
}
- $userEmail = $this->repositories->users()->emailByUsername($logEntry->username);
- if ($userEmail == null)
+ // the failed login may have been typed with the email address, or in
+ // another case: matched as Joomla matches a login (and accountExists())
+ $account = $this->repositories->users()->accountByLogin($logEntry->username);
+ if ($account === null)
{
$this->logger->log('Unknown user ('.$logEntry->username.') blocked, not sending any notifications', Log::DEBUG);
return;
}
- $withheld = $this->policy->whyNoUnblockMail($logEntry, $this->clientAddress, $targetedOtherAccounts);
+ $userEmail = $account['email'];
+ $withheld = $this->policy->whyNoUnblockMail($logEntry, $this->clientAddress, $targetedOtherAccounts,
+ $account['username']);
if ($withheld !== null)
{
$this->logger->log("Existing user '".$logEntry->username."' was blocked, but ".$withheld.
' - not sending unblock instructions', Log::INFO);
return;
}
+ try
+ {
+ $token = TokenHelper::getToken();
+ }
+ catch (\Throwable $e)
+ {
+ // no source of randomness: no link rather than a weak one
+ $this->logger->log('Could not make an unblock token: '.$e->getMessage(), Log::ERROR);
+ return;
+ }
+ if ($this->repositories->unblockTokens()->add($id, $token, $account['username']) === null)
+ {
+ // a link whose token isn't stored would lead nowhere
+ $this->logger->log("Existing user '".$logEntry->username."' was blocked, but the unblock token ".
+ 'could not be stored - not sending unblock instructions', Log::ERROR);
+ return;
+ }
$this->logger->log("Existing user '".$logEntry->username."' was blocked, sending unblock instructions", Log::INFO);
- $token = $this->repositories->unblockTokens()->add($id, TokenHelper::getToken(), $logEntry->username);
$this->notifier()->sendUnblockMail($userEmail, TokenHelper::unblockLink($token));
}
@@ -342,11 +362,13 @@ public function onUserLogin(LoginEvent $event)
$info = new \stdClass();
$info->ipaddress = $ipAddress;
$info->username = (string) ($user['username'] ?? '');
+ // failed logins may have been typed with the email address
+ $info->email = (string) ($user['email'] ?? '');
$this->logger->log('Successful login by '.$info->username.
' from IP address '.$info->ipaddress, Log::DEBUG);
$this->logins->recordSuccessfulLogin($info, $this->trackedAddress($info->ipaddress),
IpHelper::trackedAddress($info->ipaddress, IpHelper::trustPrefixLength(
- $this->intParam('ipv6PrefixLength', Settings::Defaults['ipv6PrefixLength']))));
+ $this->intParam('ipv6PrefixLength'))));
}
public function onAfterInitialise($event)
diff --git a/plugin/src/Service/LoginTurn.php b/plugin/src/Service/LoginTurn.php
index c2a85e6..8eb743d 100644
--- a/plugin/src/Service/LoginTurn.php
+++ b/plugin/src/Service/LoginTurn.php
@@ -10,10 +10,8 @@
defined('_JEXEC') or die;
-use Codeling\Library\Bfstop\Helper\HtaccessHelper;
use Codeling\Library\Bfstop\Helper\LockHelper;
use Codeling\Library\Bfstop\Helper\LoggerHelper;
-use Joomla\CMS\Factory;
use Joomla\CMS\Log\Log;
/**
@@ -54,17 +52,15 @@ class LoginTurn
/**
* The lock file for the logins of a client, by the key it is tracked
* under (IpHelper::trackedAddress()), one set of files per site (see
- * Responder::delaySlotFiles()). A fixed number of files, not one per
- * address: a visitor with many addresses must not be able to fill the
- * directory. Which one an address gets depends on the site's secret, so
- * nobody can pick addresses which share the file of somebody else's.
+ * LockHelper::file()). A fixed number of files, not one per address: a
+ * visitor with many addresses must not be able to fill the directory.
+ * Which one an address gets depends on the site's secret (see
+ * LockHelper::slot()), so nobody can pick addresses which share the file
+ * of somebody else's.
*/
public static function file($trackedAddress)
{
- $app = Factory::getApplication();
- $slot = hexdec(substr(hash_hmac('sha256', (string) $trackedAddress, (string) $app->get('secret', '')), 0, 7))
- % self::Slots;
- return HtaccessHelper::lockDirectory().'/bfstop-login-'.LockHelper::siteHash().'-'.$slot.'.lock';
+ return LockHelper::file('login', LockHelper::slot($trackedAddress, self::Slots));
}
/**
diff --git a/plugin/src/Service/Responder.php b/plugin/src/Service/Responder.php
index 2e02ac8..5c73c78 100644
--- a/plugin/src/Service/Responder.php
+++ b/plugin/src/Service/Responder.php
@@ -10,7 +10,6 @@
defined('_JEXEC') or die;
-use Codeling\Library\Bfstop\Helper\HtaccessHelper;
use Codeling\Library\Bfstop\Helper\LockHelper;
use Codeling\Library\Bfstop\Helper\LoggerHelper;
use Codeling\Library\Bfstop\Settings;
@@ -57,10 +56,9 @@ private function isApi(): bool
*/
public function showsRemainingAttempts(): bool
{
- $passwordReminder = (int) $this->params->get('notifyUsePasswordReminder',
- Settings::Defaults['notifyUsePasswordReminder']);
+ $passwordReminder = Settings::int($this->params, 'notifyUsePasswordReminder');
return !$this->isApi() &&
- ((bool) $this->params->get('notifyRemainingAttempts', false) ||
+ (Settings::bool($this->params, 'notifyRemainingAttempts') ||
$passwordReminder == -1 || $passwordReminder > 0);
}
@@ -75,9 +73,8 @@ public function showRemainingAttempts($attemptsLeft)
$this->logger->log('Remaining attempts below zero ('.$attemptsLeft.'), that should not happen. ', Log::ERROR);
return;
}
- $passwordReminder = (int) $this->params->get('notifyUsePasswordReminder',
- Settings::Defaults['notifyUsePasswordReminder']);
- if ((bool) $this->params->get('notifyRemainingAttempts', false) && $attemptsLeft > 0)
+ $passwordReminder = Settings::int($this->params, 'notifyUsePasswordReminder');
+ if (Settings::bool($this->params, 'notifyRemainingAttempts') && $attemptsLeft > 0)
{
$this->app->enqueueMessage(Text::sprintf('PLG_SYSTEM_BFSTOP_X_ATTEMPTS_LEFT', $attemptsLeft), 'warning');
}
@@ -94,7 +91,7 @@ public function showRemainingAttempts($attemptsLeft)
*/
public function refuseBlocked($ipaddress)
{
- $status = self::blockedResponseCode((bool) $this->params->get('useHttpError', true));
+ $status = self::blockedResponseCode(Settings::bool($this->params, 'useHttpError'));
if ($status !== null)
{
http_response_code($status);
@@ -103,8 +100,8 @@ public function refuseBlocked($ipaddress)
{
header($header);
}
- $message = $this->params->get('blockedMessage', Text::_('PLG_SYSTEM_BFSTOP_BLOCKED_IP_MESSAGE'));
- if ((bool) $this->params->get('blockedMsgShowIP', false))
+ $message = Settings::string($this->params, 'blockedMessage') ?: Text::_('PLG_SYSTEM_BFSTOP_BLOCKED_IP_MESSAGE');
+ if (Settings::bool($this->params, 'blockedMsgShowIP'))
{
$message .= ' '.Text::sprintf('PLG_SYSTEM_BFSTOP_BLOCKED_CLIENT_IP', $ipaddress);
}
@@ -197,11 +194,10 @@ public static function cappedDelay($seconds)
*/
public static function delaySlotFiles($count)
{
- $site = LockHelper::siteHash();
$files = array();
for ($i = 0; $i < max(1, (int) $count); ++$i)
{
- $files[] = HtaccessHelper::lockDirectory().'/bfstop-delay-'.$site.'-'.$i.'.lock';
+ $files[] = LockHelper::file('delay', $i);
}
return $files;
}
@@ -240,8 +236,7 @@ public function delay($seconds)
{
return false;
}
- $maxConcurrent = max(1, (int) $this->params->get('delayMaxConcurrent',
- Settings::Defaults['delayMaxConcurrent']));
+ $maxConcurrent = max(1, Settings::int($this->params, 'delayMaxConcurrent'));
$opened = false;
foreach (self::delaySlotFiles($maxConcurrent) as $file)
{
@@ -271,7 +266,7 @@ public function delay($seconds)
// not delaying is what keeps the server available
$this->logger->log($opened
? 'Not delaying the response: '.$maxConcurrent.' response(s) are being delayed already'
- : 'Not delaying the response: could not create the lock files in '.HtaccessHelper::lockDirectory(),
+ : 'Not delaying the response: could not create the lock files in '.LockHelper::directory(),
$opened ? Log::INFO : Log::WARNING);
return false;
}
diff --git a/plugin/updatescript.php b/plugin/updatescript.php
index a51546a..771ee52 100644
--- a/plugin/updatescript.php
+++ b/plugin/updatescript.php
@@ -13,6 +13,7 @@
use Joomla\CMS\Installer\InstallerScript;
use Joomla\CMS\Installer\InstallerScriptInterface;
use Joomla\CMS\Language\Text;
+use Joomla\CMS\Log\Log;
use Joomla\CMS\Router\Route;
use Joomla\Database\DatabaseInterface;
@@ -26,7 +27,7 @@ class PlgsystembfstopInstallerScript extends InstallerScript implements Installe
// InstallerScript::preflight() refuses to install on anything older (and
// to replace a newer version of the plugin with an older one)
protected $minimumJoomla = '5.4.0';
- protected $minimumPhp = '8.1.0';
+ protected $minimumPhp = '8.2.0';
// the version this update replaces, null for an installation
private $previousVersion = null;
@@ -35,6 +36,9 @@ class PlgsystembfstopInstallerScript extends InstallerScript implements Installe
// be replaced, see replaceLegacyHtaccessSection()
private $htaccessNotRewritten = null;
+ // why update() could not migrate the settings and data, if it couldn't
+ private $updateFailure = null;
+
// the bit of the "enabledForOrigin" setting for the Web Services API
// (Origin::Api - the class of the version being replaced may be the
// one loaded while this runs)
@@ -263,6 +267,15 @@ private function renameWhitelistTable()
public function postflight(string $type, InstallerAdapter $adapter): bool
{
+ if ($this->updateFailure !== null)
+ {
+ Factory::getApplication()->getLanguage()->load('plg_system_bfstop', JPATH_ADMINISTRATOR);
+ Factory::getApplication()->enqueueMessage(
+ Text::sprintf('PLG_SYSTEM_BFSTOP_UPDATE_MIGRATION_FAILED', htmlspecialchars($this->updateFailure, ENT_QUOTES, 'UTF-8'),
+ Route::_('index.php?option=com_bfstop&view=settings', false)),
+ 'error'
+ );
+ }
if ($this->htaccessNotRewritten !== null)
{
Factory::getApplication()->getLanguage()->load('plg_system_bfstop', JPATH_ADMINISTRATOR);
@@ -415,8 +428,13 @@ public function update(InstallerAdapter $adapter): bool
}
catch (\Throwable $e)
{
- // if the extension row can't be found/updated, there's nothing we can do
-// Log::add("Update ERROR: ".$e->getMessage(), Log::ERROR, 'Update');
+ // the update itself goes on (the files are new, the plugin works
+ // with its defaults), but the administrator has to know: the
+ // settings may not have been moved or converted. Logged, and
+ // told by postflight()
+ $this->updateFailure = $e->getMessage();
+ Log::add('Brute Force Stop: the update could not migrate the settings and data: '.$e->getMessage(),
+ Log::ERROR, 'jerror');
}
return true;
}
@@ -626,6 +644,18 @@ public static function replaceLegacyHtaccessSection($file)
return self::writeFile($file, implode("\n", $lines));
}
+ /**
+ * Whether $line is the