freeptcha/public/index.html

86 lines
2.7 KiB
HTML
Raw Normal View History

2023-06-23 13:08:16 +02:00
<!DOCTYPE html>
<html>
2023-08-22 11:17:15 +02:00
<head>
<style>
td.description {
padding-right: 16px;
}
</style>
</head>
2023-06-23 13:08:16 +02:00
<body>
2023-06-23 15:11:59 +02:00
<h1 align="center">This is FreePtcha, a completely open source captcha.</h1>
2023-06-23 13:08:16 +02:00
<hr/>
2023-06-23 15:11:59 +02:00
<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
2023-06-23 18:14:01 +02:00
<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>
2023-06-23 15:11:59 +02:00
</p>
<hr/>
<h2>Example</h2>
2023-08-22 11:17:15 +02:00
<table>
<tbody>
<tr>
<td>
<a href="/captcha/v1/UwU">
/captcha/v1/UwU<br/>
<img src="/captcha/v1/UwU" />
</a>
</td>
<td>
<a href="/captcha/v2/UwU">
/captcha/v2/UwU<br/>
<img src="/captcha/v2/UwU" />
</a>
</td>
</tr>
<tr>
<td class="description">
A simple text stroked over a lot of times
</td>
<td class="description">
Text with a few random letters and circles in the background
</td>
</tr>
</tbody>
</table>
2023-06-23 15:11:59 +02:00
<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>
2023-06-23 13:08:16 +02:00
</body>
</html>