Skip to content

Commit

Permalink
Use absolute widget image URLs
Browse files Browse the repository at this point in the history
This removes the duplication, and serves all images from /static/img/
instead.
  • Loading branch information
imiric committed Aug 6, 2024
1 parent de2bb23 commit 0be08ed
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion blog/2023-06-01-announcing-the-v2-beta/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Since launching Friendly Captcha in 2020 we've grown a lot. Friendly Captcha now

Some improvements however are hard to fit into the existing system. In 2022 we decided to start building version 2 of our captcha product, incorporating all the learnings over the past years.

![Screenshot of v2 captcha widget](../../docs/guides/upgrading-to-v2/widget-v2-ready.png)
![Screenshot of v2 captcha widget](/img/widget-v2-ready.png)

## Rollout
We are deliberately slow and careful in rolling out v2 to all Friendly Captcha subscribers.
Expand Down
6 changes: 3 additions & 3 deletions docs/guides/upgrading-to-v2/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ We are working on bringing v2 support to all popular languages and frameworks.


The widget for **v1** looks like this:
![Screenshot of widget v1 that has not been started yet](./widget-v1-ready.png) ![Screenshot of widget v1 that has been finished](./widget-v1-completed.png)
![Screenshot of widget v1 that has not been started yet](/img/widget-v1-ready.png) ![Screenshot of widget v1 that has been finished](/img/widget-v1-completed.png)

The NPM package for **v1** is [`friendly-challenge`](https://www.npmjs.com/package/friendly-challenge).
The siteverify endpoint for v1 is `https://api.friendlycaptcha.com/api/v1/siteverify`.

#### Friendly Captcha **v2**

The widget for **v2** looks like this:
![Screenshot of widget v2 that has not been started yet](./widget-v2-ready.png) ![Screenshot of widget v2 that has been finished](./widget-v2-completed.png)
![Screenshot of widget v2 that has not been started yet](/img/widget-v2-ready.png) ![Screenshot of widget v2 that has been finished](/img/widget-v2-completed.png)

The NPM package for **v2** is [`@friendlycaptcha/sdk`](https://www.npmjs.com/package/@friendlycaptcha/sdk).
The siteverify endpoint for v2 is `https://global.frcapi.com/api/v2/captcha/siteverify`.
Expand All @@ -47,4 +47,4 @@ If you are using the Javascript API to programmatically create widgets, please f

### Backend changes

You will also need to make small changes to your backend code. These are described in [this guide](./backend-integration).
You will also need to make small changes to your backend code. These are described in [this guide](./backend-integration).
4 changes: 2 additions & 2 deletions docs/what-is-friendly-captcha.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sidebar_position: 2

Website owner integrate Friendly Captcha by adding a widget to their website. This widget helps protect against bots and spam requests.

![Widget screenshot](./widget-v2-ready.png)
![Widget screenshot](/img/widget-v2-ready.png)
*Screenshot of the Friendly Captcha Widget*.


Expand All @@ -31,4 +31,4 @@ This happens in the background, by the time the user is ready to submit a form o
* [**The Friendly Captcha website**](https://friendlycaptcha.com) provides more details about our service. You can try Friendly Captcha for 30 days at no cost.
* To integrate Friendly Captcha to your website, follow our [**Getting Started**](./getting-started/introduction) guide.
* If you are switching from **Google reCAPTCHA** or **hCaptcha**, check out the [**Migration Guide**](./guides/)
* If you are upgrading from Friendly Captcha v1, check out the [Upgrade Guide](./guides/upgrading-to-v2/introduction).
* If you are upgrading from Friendly Captcha v1, check out the [Upgrade Guide](./guides/upgrading-to-v2/introduction).
Binary file removed docs/widget-v2-ready.png
Binary file not shown.
Binary file removed static/img/screenshot/v1-widget-ready.png
Binary file not shown.
Binary file removed static/img/screenshot/v2-widget-ready.png
Binary file not shown.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes

0 comments on commit 0be08ed

Please sign in to comment.