Skip to content

casual-coderr/simple-cloudflare-redirect-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

How to Implement

  • Go to the KV section in cloudflare dashboard create a new KV with some name

1

  • Go to the Workers pane in Cloudflare and click create a service

2

  • Give it a name, so this will be the url for your service worker and click create service

3

4

  • Click on Quick Edit and Copy the code from index.js to the worker

5

6

  • Next Go to the KV Namespace Binding in settings of the worker

7

  • Give the variable name as REDIRECT_KV and link it to the name of KV you created and hit save.

8

  • Now whatever you add in the KV namespace can be used as a redirect link.

9

  • Your service will be available at url.workerdomain.workers.dev/kv-value

10

You are free to add as much links you want. You have successfully created a mini Bit.ly Service

About

Simple Redirection site using Cloudflare workers and KV

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published