Skip to content
/ FckBot Public

FckBot is a frontend protection system designed to defend against automated bots.

Notifications You must be signed in to change notification settings

og-xerd/FckBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” Why FckBot

FckBot is a frontend protection system designed to defend against automated bots. It leverages proof-of-work challenges and a variety of other techniques that make reverse engineering significantly more difficult. By adding layers of complexity and dynamic behavior, FckBot helps ensure that only real users can access and interact with your application effectively.

πŸ’» Example of use in frontend

<head>
    <script type="module" crossorigin src="{fckbot script location}"></script>
</head>
<body>
    <script>
        window.onload = () => {
            FckBot.setConfig({
                challengeUrl: "http://localhost:4000/getChallenge"
            });

            FckBot.fetch("https://localhost:4000/exampleEndpoint");
        }
    </script>
</body>

🌐 Example of use in backend

Example in go

go run . or go build

{
    "example": true,
    "host": "",
    "port": 4000,
    "apikey": "example",
    "challenge": {
        "difficulty": [8, 16],
        "latency": [100, 300]
    },
    "paths": {
        "get_challenge": "/getChallenge",
        "verify_challenge": "/verifyChallenge"
    }
}
Key Value Description
example boolean specifies whether cors and exampleEndpoint should be enabled
host string if it is "" it works for 0.0.0.0
port int the port on which the backend is to operate
apikey string api key to be used for verifyChallenge
challenge.difficulty [int, int] determines the difficulty of the challenge
challenge.latency [int, int] specifies the latency in the challenge
paths.get_challenge string specifies the path for getChallenge
paths.verify_challenge string specifies the path for verifyChallenge

πŸ”§ Technologies used

Perfect frontend

  • ⚑Vite + Typescript

Very fast backend

  • πŸš€ Go lang + fiber

About

FckBot is a frontend protection system designed to defend against automated bots.

Resources

Stars

Watchers

Forks

Packages

No packages published