mirror of
https://github.com/velocitatem/garlic.git
synced 2026-05-31 16:53:37 +00:00
mdoe
This commit is contained in:
39
README.md
39
README.md
@@ -2,26 +2,37 @@
|
|||||||
|
|
||||||
Garlic is a simple, fast and secure way to protect your website from being scraped by bots.
|
Garlic is a simple, fast and secure way to protect your website from being scraped by bots.
|
||||||
|
|
||||||
## What
|
|
||||||
|
---
|
||||||
|
|
||||||
You write your code and text as you would any other day, just let garlic protect your content from scraping.
|
You write your code and text as you would any other day, just let garlic protect your content from scraping.
|
||||||
|
|
||||||
1. You write:
|
|
||||||
|
|
||||||
```html
|
| You Write | `<p>This is a test piece of text</p>` |
|
||||||
<p>
|
| Scraper Sees |  |
|
||||||
This is a test piece of text.
|
| User Sees |  |
|
||||||
</p>
|
|
||||||
|
# How?
|
||||||
|
Currently, this is in development, but the beta works like this:
|
||||||
|
|
||||||
|
## React
|
||||||
|
You just need to wrap your html in the `garlic()` method:
|
||||||
|
|
||||||
|
```reactjs
|
||||||
|
function App() {
|
||||||
|
return garlic(
|
||||||
|
<div className="App">
|
||||||
|
<p>Go away robots :)</p>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
2. The scraper will see:
|
## Astro
|
||||||
|
Coming soon :)
|
||||||
|
|
||||||

|
## Want some salt with that?
|
||||||
|
We can also add some [salt](https://auth0.com/blog/adding-salt-to-hashing-a-better-way-to-store-passwords/) to the encoding, add that extra step of security.
|
||||||
|
|
||||||
3. But the user will see:
|
|
||||||
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
# Why?
|
# Why?
|
||||||
|
AI needs data, your website might end-up in the dataset it uses for training. Dont want that? Garlic should help :)
|
||||||
|
|||||||
Reference in New Issue
Block a user