horus-bot-detect 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +85 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# horus-bot-detect
|
|
2
|
+
|
|
3
|
+
Web oyunları için bot ve emülatör tespit kütüphanesi.
|
|
4
|
+
|
|
5
|
+
Tek satır entegrasyon ile oyunlarınızı bot, emülatör ve otomasyon araçlarından koruyun.
|
|
6
|
+
|
|
7
|
+
## Kurulum
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install horus-bot-detect
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Kullanım
|
|
14
|
+
|
|
15
|
+
```jsx
|
|
16
|
+
import { Horus } from 'horus-bot-detect';
|
|
17
|
+
|
|
18
|
+
Horus.init({
|
|
19
|
+
token: 'YOUR_TOKEN',
|
|
20
|
+
endpoint: 'https://your-api.com/event'
|
|
21
|
+
});
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### React
|
|
25
|
+
|
|
26
|
+
```jsx
|
|
27
|
+
import { useEffect } from 'react';
|
|
28
|
+
import { Horus } from 'horus-bot-detect';
|
|
29
|
+
|
|
30
|
+
function App() {
|
|
31
|
+
useEffect(() => {
|
|
32
|
+
Horus.init({
|
|
33
|
+
token: 'YOUR_TOKEN',
|
|
34
|
+
endpoint: 'https://your-api.com/event'
|
|
35
|
+
});
|
|
36
|
+
}, []);
|
|
37
|
+
|
|
38
|
+
return <div>...</div>;
|
|
39
|
+
}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Vanilla JS
|
|
43
|
+
|
|
44
|
+
```html
|
|
45
|
+
<script type="module">
|
|
46
|
+
import { Horus } from './node_modules/horus-bot-detect/index.mjs';
|
|
47
|
+
|
|
48
|
+
Horus.init({
|
|
49
|
+
token: 'YOUR_TOKEN',
|
|
50
|
+
endpoint: 'https://your-api.com/event'
|
|
51
|
+
});
|
|
52
|
+
</script>
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Nasıl Çalışır
|
|
56
|
+
|
|
57
|
+
Uygulama açıldığı anda Horus arka planda çalışmaya başlar. Şüpheli aktivite tespit edildiğinde belirttiğiniz endpoint'e otomatik olarak rapor gönderir.
|
|
58
|
+
|
|
59
|
+
### Raporlama
|
|
60
|
+
|
|
61
|
+
Bot tespit edildiğinde endpoint'inize POST request atılır:
|
|
62
|
+
|
|
63
|
+
```json
|
|
64
|
+
{
|
|
65
|
+
"value": "bot_detected",
|
|
66
|
+
"reason": "Bot Tespit Edildi - [detaylar] - Risk: 0.87",
|
|
67
|
+
"token": "YOUR_TOKEN"
|
|
68
|
+
}
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Parametreler
|
|
72
|
+
|
|
73
|
+
| Parametre | Tip | Zorunlu | Açıklama |
|
|
74
|
+
|-----------|-----|---------|----------|
|
|
75
|
+
| `token` | string | Evet | Kimlik doğrulama token'ı |
|
|
76
|
+
| `endpoint` | string | Evet | Raporların gönderileceği POST endpoint URL'i |
|
|
77
|
+
|
|
78
|
+
## Gereksinimler
|
|
79
|
+
|
|
80
|
+
- Modern tarayıcı (WebAssembly desteği)
|
|
81
|
+
- HTTPS ortamı (production)
|
|
82
|
+
|
|
83
|
+
## Lisans
|
|
84
|
+
|
|
85
|
+
MIT
|