2023-03-03 00:54:32 +01:00
2023-03-03 00:52:44 +01:00
2023-03-03 00:26:23 +01:00
2023-03-02 15:42:50 +01:00
2023-03-01 11:12:12 +01:00
2023-03-01 18:40:02 +01:00
2023-03-03 00:54:32 +01:00

Garlic 🧄🧛

Garlic is a simple, fast and secure way to protect your website from being scraped by bots.


You write your code and text as you would any other day, just let garlic protect your content from scraping.

POV Result
You Write <p>This is a test piece of text</p>
Scraper Sees final
User Sees user

Try Now!

  1. Go to this website: https://garlic-astro.netlify.app/
  2. You will see normal text the way it should be
  3. Run the following command: wget https://garlic-astro.netlify.app/
  4. Open the index.html
  5. You will see the encoded text :)

How?

Currently, this is in development, but the beta works like this:

React

Install the packages with npm i garlic-react, you should then import the Garlic class with:

import Garlic from 'garlic';

You just need to wrap your html in the garlic() method:

function App() {
  return Garlic.clove(
          <div className="App">
            <p>Go away robots :)</p>
          </div>
  );
};

Go to index.js or anywhere before render. Add the following line of code:

Garlic.peal(document);

And all is done!

Astro

Coming soon :)

Why?

AI needs data, your website might end-up in the dataset it uses for training. Dont want that? Garlic should help :)

Stargazers over time

Stargazers over time

Description
🧄🧛 protect your website from being scraped by bots.
Readme 267 KiB
Languages
JavaScript 38.6%
Astro 33%
Python 24.6%
TypeScript 3.8%