GitXplorerGitXplorer
i

anticspam

public
0 stars
0 forks
1 issues

Commits

List of commits on branch main.
Unverified
b693b463c918f8fe28835b434dc6d7fe24ab0319

version 0.4 readme

iiiic committed 4 years ago
Unverified
471deec4d373b99b954b5c5771d6ba19011c6987

version 0.4 readme

iiiic committed 4 years ago
Unverified
924952bd725f191cea3d0488a44b223fe5be0dae

version 0.4 small bugs fixed; moduls included in package

iiiic committed 4 years ago
Unverified
86a2dd26ac66be691ec0703a390c8f5908c1d1f9

added PHP endpoint example; removed antispam mathematical question

iiiic committed 4 years ago
Unverified
641ef059364cd97d62f9a82beef5e2f7ae136380

version 0.2 ; small bugs reapired

iiiic committed 4 years ago
Unverified
9c7d8c043b309c82a5cb752d5c398f7597ecea84

init

iiiic committed 4 years ago

README

The README file for this repository.

Anticspam

Antispam hashing library Anticspam

Use

Paste the script file anywhere in the page, like any regular javascript module. Settings are in json identified by id anticspam-settings

<script type="text/json" id="anticspam-settings">
	{
		"publicKey": "8gUBgEitsLCXar2vq3bm",
		"apiEndpoints": [ "https://domain.tld/api/endpoint/" ],
		"watchedFieldsQSA": {
			"texts": ["#comment", "#author"]
		}
	}
</script>
<script type="module" src="/anticspam.mjs?v0.4" crossorigin="anonymous" integrity="sha256-epLx0SPGI4NDH6qzKbhDJqQeSSG6KsJdQdpgHQ2UnsSQ="></script>

a simple example of usage is in the example-usage.html file

Possible problems?

The mjs extension must have the correct mime type set to text/javascript, if it is too laborious, rename the suffix from .mjs to .js.

Licence

CC BY-SA 4.0

This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.


More info at https://iiic.dev/anticspam