freeptcha/public/index.html

61 lines
1.9 KiB
HTML

<!DOCTYPE html>
<html>
<body>
<h1 align="center">This is FreePtcha, a completely open source captcha.</h1>
<hr/>
<h2>What is this?</h2>
<p>
It seems that you have sucessfully installed freeptcha.<br/>
</p>
<h2>How do I use this?</h2>
<p>
Send a GET to <b>/catpcha/v{version}/{text}</b>, where
<b>version</b> - captcha version, and
<b>text</b> is the text of your captcha.
</p>
<p>
Also you can pass additional props in the query. Supported props are:<br/>
<ul>
<li><b>width</b> - ratio width (default 3)</li>
<li><b>height</b> - ratio height (default 1)</li>
<li><b>padding</b> - padding of the image (default 20)</li>
<li><b>format</b> - output format of the image (not supported) (default png)</li>
<li><b>dpi</b> - dots per inch, basically text scale (default 250)</li>
</ul>
</p>
<hr/>
<h2>Example</h2>
<p>
<a href="/captcha/v1/UwU">
/captcha/v1/UwU<br/>
<img src="/captcha/v1/UwU" />
</a>
<br/>
A simple text stroked over a lot of times
</p>
<hr/>
<h1>Captcha versions</h1>
<p>
Supported captcha vesions as of this moment:
<br/>
<table>
<tbody>
<tr>
<td>Version №</td>
<td>Description</td>
<td>Example</td>
</tr>
<tr>
<td>1</td>
<td>Text stroked over a lot of times</td>
<td><img src="/captcha/v1/Version 1"/></td>
</tr>
</tbody>
</table>
</p>
</body>
</html>