Requested feature overview description.
Tor, while a great thing, is often used by baddies, someone recently(whom will not be named) got banned for using Tor to ban evade. Most of the time, Tor will most likely be used to ban evade on e621. Other times it is used by people in countries like Russia which block e621.(This can be remedied by making a read only e621 onion page, but entirely optional)
Example implementation I wrote for this
#!/usr/bin/env ruby require 'net/http' require 'json' #Probably already included in the codebase #If you want, you can also check common spam emails by using #http://api.stopforumspam.org/api?ip=%s&email=%s&f=json url = URI.parse( format( 'http://api.stopforumspam.org/api?ip=%s&f=json', request.remote_ip #This may need to be changed due to cloudflare ) ) req = Net::HTTP::Get.new(url.to_s) res = Net::HTTP.start(url.host, url.port) {|http| http.request(req) } if res.code != "200" p "Uh oh, an error occurred during registration!" else sfs = JSON.parse(res.body) if sfs["success"] == 1 if sfs["ip"]["appears"] == 0 #They should be safe, let them enter p "Welcome!" else if sfs["ip"].has_key?("torexit") and sfs["ip"]["torexit"] == 1 #Tor exit node, probably ban evader p "Registration for tor exit nodes are disabled. " \ "If you believe this is a mistake, please contact " \ "[email protected]" elsif sfs["ip"]["confidence"] > 5 #Probably shouldn't be here, AKA: spam bot p "Registration from this address is disabled due to" \ " high confidence rating on " \ "http://stopforumspam.org/. If you believe this is " \ "a mistake, please contact [email protected]" end end else #Throw up an internal error, probably bad IP passed to field p "Internal error!" end end
Full documentation can be read here http://www.stopforumspam.com/usage
As for worries about it locking off registrations due to outage, stopforumspam is used by a TON of websites, they keep their servers up.
Why would it be useful?
Prevent ban evaders(And also spambots, which is a bonus).
What part(s) of the site page(s) are affected?
- Registration
Updated by Ratte