You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
forest bcb2c1c032 encodeURIComponent 1 month ago
dockerbuild first commit of PoW captcha rewrite 1 month ago
.dockerignore first commit of PoW captcha rewrite 1 month ago
.eslintrc.js initial commit 1 month ago
.gitignore initial commit 1 month ago
Dockerfile first commit of PoW captcha rewrite 1 month ago
README.md first commit of PoW captcha rewrite 1 month ago
index.js encodeURIComponent 1 month ago
package-lock.json first commit of PoW captcha rewrite 1 month ago
package.json first commit of PoW captcha rewrite 1 month ago
yarn.lock Haiku based validation 1 month ago

README.md

Gitea Registration Proxy

To hopefully combat spam, proxy signup requests from a manipulated form template.

It's entirely based on the assumption that spambots just send the form submission with the email field, instead we require that field to be "please leave this empty" or "", and store the signup email in secret_field. The proxy then re-crafts the Gitea expected field names and passes on the request.

Installation

  • Run this software
  • Tell Nginx to proxy the /user/sign_up path on the gitea domain to hit this software instead of gitea
location /user/sign_up  {
	proxy_pass http://localhost:8080; # gitea registration proxy port	
}
  • ???
  • Profit!?!? (without spam)