-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[6.1] Add proof-of-work captcha #46514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
SniperSister
wants to merge
21
commits into
joomla:6.1-dev
Choose a base branch
from
SniperSister:6.1-powcaptcha
base: 6.1-dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 12 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
1c33104
Add pow-based captcha
SniperSister e9a265f
fix i18n strings
SniperSister 5be8013
typo
SniperSister 0e03481
remove unused file
SniperSister c318f85
sort strings
SniperSister 69db4b2
Apply suggestions from code review
SniperSister 9682512
update update statements
SniperSister cb415ad
fix script syntax
SniperSister f04d1c5
i18n fix
SniperSister 98efac5
i18n file filex
SniperSister f9f8d4f
prevent replay attacks
SniperSister e20a5dc
Update plugins/captcha/powcaptcha/src/Extension/POWCaptcha.php
SniperSister cdbc757
clarifiy texts
SniperSister f2e9417
Merge branch '6.1-powcaptcha' of github.com:SniperSister/joomla-cms i…
SniperSister 46be71f
update descriptions
SniperSister 60eeeac
alphasort i18n stirngs
SniperSister afa5cdd
adjust to styleguide
SniperSister 01d9546
cs fix
SniperSister fa3c1f9
added plugin to core extension list
SniperSister cdfacee
refactor to new captcha api
SniperSister 3a30fa8
refactor ajax handling
SniperSister File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
administrator/components/com_admin/sql/updates/mysql/6.1.0-2025-11-29.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| INSERT INTO `#__extensions` (`name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `locked`, `manifest_cache`, `params`, `custom_data`, `ordering`, `state`) | ||
| SELECT 'plg_captcha_powcaptcha', 'plugin', 'powcaptcha', 'captcha', 0, 1, 1, 0, 1, '', '{}', '', 0, 0 | ||
| WHERE NOT EXISTS (SELECT * FROM `#__extensions` e WHERE e.`type` = 'plugin' AND e.`element` = 'powcaptcha' AND e.`folder` = 'captcha' AND e.`client_id` = 0); |
4 changes: 4 additions & 0 deletions
4
administrator/components/com_admin/sql/updates/postgresql/6.1.0-2025-11-29.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| INSERT INTO "#__extensions" ("name", "type", "element", "folder", "client_id", "enabled", "access", "protected", "locked", "manifest_cache", "params", "custom_data", "ordering", "state") | ||
| SELECT 'plg_captcha_powcaptcha', 'plugin', 'powcaptcha', 'captcha', 0, 1, 1, 0, 1, '', '{}', '', 0, 0 | ||
| WHERE NOT EXISTS (SELECT * FROM "#__extensions" e WHERE e."type" = 'plugin' AND e."element" = 'powcaptcha' AND e."folder" = 'captcha' AND e."client_id" = 0); | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,39 @@ | ||||||||||
| ; Joomla! Project | ||||||||||
| ; (C) 2025 Open Source Matters, Inc. <https://www.joomla.org> | ||||||||||
| ; License GNU General Public License version 2 or later; see LICENSE.txt | ||||||||||
| ; Note : All ini files need to be saved as UTF-8 | ||||||||||
|
|
||||||||||
| PLG_CAPTCHA_POWCAPTCHA="CAPTCHA - Proof of Work" | ||||||||||
| PLG_CAPTCHA_POWCAPTCHA_XML_DESCRIPTION="This CAPTCHA plugin presents a math task to the user's browser that the browser can solve automatically. It's not supposed to prove humanship of the user, but to prove that the user is willing to invest the necessary time to solve the task. Currently based on the Altcha (altcha.org) library." | ||||||||||
|
|
||||||||||
| ; Admin parameters | ||||||||||
| PLG_CAPTCHA_POWCAPTCHA_AUTOSOLVE_LABEL="Automatic Solution" | ||||||||||
| PLG_CAPTCHA_POWCAPTCHA_AUTOSOLVE_DESC="Should the captcha be solved automatically, without requiring the user to actively click on the respective box?" | ||||||||||
| PLG_CAPTCHA_POWCAPTCHA_AUTOSOLVE_OFF="Off" | ||||||||||
| PLG_CAPTCHA_POWCAPTCHA_AUTOSOLVE_ONFOCUS="When captcha field receives focus" | ||||||||||
| PLG_CAPTCHA_POWCAPTCHA_AUTOSOLVE_ONLOAD="When page is loaded" | ||||||||||
| PLG_CAPTCHA_POWCAPTCHA_AUTOSOLVE_ONSUBMIT="When form is submitted" | ||||||||||
| PLG_CAPTCHA_POWCAPTCHA_DIFFICULTY_LABEL="Difficulty" | ||||||||||
| PLG_CAPTCHA_POWCAPTCHA_DIFFICULTY_DESC="The harder the captcha gets, the more computing time will be required to solve it." | ||||||||||
| PLG_CAPTCHA_POWCAPTCHA_DIFFICULTY_CUSTOM="Custom" | ||||||||||
| PLG_CAPTCHA_POWCAPTCHA_DIFFICULTY_EASY="Easy" | ||||||||||
| PLG_CAPTCHA_POWCAPTCHA_DIFFICULTY_HARD="Hard" | ||||||||||
| PLG_CAPTCHA_POWCAPTCHA_DIFFICULTY_MODERATE="Moderate" | ||||||||||
| PLG_CAPTCHA_POWCAPTCHA_EXPIRATION_LABEL="Expiration" | ||||||||||
| PLG_CAPTCHA_POWCAPTCHA_EXPIRATION_DESC="How long should a solution be valid?" | ||||||||||
|
||||||||||
| PLG_CAPTCHA_POWCAPTCHA_EXPIRATION_LABEL="Expiration" | |
| PLG_CAPTCHA_POWCAPTCHA_EXPIRATION_DESC="How long should a solution be valid?" | |
| PLG_CAPTCHA_POWCAPTCHA_EXPIRATION_DESC="How long should a solution be valid?" | |
| PLG_CAPTCHA_POWCAPTCHA_EXPIRATION_LABEL="Expiration" |
alphasort
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| ; Joomla! Project | ||
| ; (C) 2025 Open Source Matters, Inc. <https://www.joomla.org> | ||
| ; License GNU General Public License version 2 or later; see LICENSE.txt | ||
| ; Note : All ini files need to be saved as UTF-8 | ||
|
|
||
| PLG_CAPTCHA_POWCAPTCHA="CAPTCHA - Proof of Work" | ||
| PLG_CAPTCHA_POWCAPTCHA_XML_DESCRIPTION="This CAPTCHA plugin presents a math task to the user's browser that the browser can solve automatically. It's not supposed to prove humanship of the user, but to prove that the user is willing to invest the necessary time to solve the task. Currently based on the Altcha (altcha.org) library." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.