this is the source code for https://keyshare.link
I have created this site to give people a more realistic chance of getting a key without the fear of a "bot" claiming it
and also give the submitter a better understanding that a legitimate user will actually claim the key
I have included the source for the site so people can look over it or host it themselves.
features of the site are:
- restriction of claimant for minimum link karma
- restriction of claimant for minimum comment karma
- restriction of claimant for minimum account age
- hCaptcha to prevent bots from scraping
- reveals the key to public are 30 minutes to prevent resellers hold on to the key.
- claiming the key will bind to your account
- submitter of key is able to see who claimed the key
- rate limited claiming of 1 key per 30 minutes to give a fair chance to people claiming
20/11/2024
- changed IPv6 to store /64 subnet for rate limiting.
- added weekly limit on claiming
15/11/2024
- added the ability for submitters to ban users from their own giveaways
- allow submitters to prevent users from claiming keys submitted from the same submitter after X hours e.g. user X cannot claim 2 keys from submitter A in a 24 hour period but allowed to claim from submitter B during this period as long as it does not conflict with the sitewide limit of 30 minutes.
- redesign interface to be more mobile friendly
- possibility of longer session times for a select amount of people that have submitted some keys
includes the following projects
Light PHP wrapper for the OAuth 2.0 protocol. https://github.com/adoy/PHP-OAuth2
ParseDown https://github.com/erusev/parsedown