Code Monkey home page Code Monkey logo

crazypeace / url-shorten-worker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xytom/url-shorten-worker

359.0 2.0 264.0 490 KB

使用秘密路径访问操作页面. 支持自定义短链. API 不公开服务. 页面缓存设置过的短链. 长链接文本框预搜索localStorage. 增加删除某条短链的按钮. 增加读取KV的按钮. 支持QRcode二维码. 变身网络记事本 Pastebin. 变身图床 Image Hosting. 变身网络日记本. A URL Shortener created using Cloudflare worker and KV

Home Page: https://zelikk.blogspot.com/2022/07/url-shorten-worker-hide-tutorial.html

License: MIT License

JavaScript 37.32% CSS 1.32% HTML 61.36%

url-shorten-worker's Introduction

演示

短链系统 https://1way.eu.org/bodongshouqulveweifengci

网络记事本 Pastebin https://pastebin.icdyct.cloudns.asia/tieludasiliqiuweiyue

图床 Image Hosting https://imghost.crazypeace.workers.dev/imghostimghost

网络日记本 NetJournal 支持Markdown https://journal.crazypeace.workers.dev/journaljournal

完整的部署教程

https://zelikk.blogspot.com/2022/07/url-shorten-worker-hide-tutorial.html

如果不想被作者的更新影响

  • Fork一份自己的Repo.

  • 在Cloudflare的worker.js中搜索"https://crazypeace.github.io/Url-Shorten-Worker/" + config.theme + "/index.html", 把其中的crazypeace改为你自己的, 这样Cloudflare的worker就会拉你自己的这一份index.html image

  • 在你自己fork出来的这份Repo里, 修改index.html, 搜索"https://crazypeace.github.io/Url-Shorten-Worker/main.js", 把其中的crazypeace改为你自己的, index.html就会拉你自己的main.js image

在原版基础上的修改说明

直接访问域名返回404。在KV中设置一个entry,保存秘密path,只有访问这个path才显示使用页面。
https://zelikk.blogspot.com/2022/07/url-shorten-worker-hide-tutorial.html

支持自定义短链
https://zelikk.blogspot.com/2022/07/url-shorten-worker-custom.html

API 不公开服务
https://zelikk.blogspot.com/2022/07/url-shorten-worker-api-password.html

页面缓存设置过的短链
https://zelikk.blogspot.com/2022/08/url-shorten-worker-localstorage.html

长链接文本框预搜索localStorage
https://zelikk.blogspot.com/2022/08/url-shorten-worker-bootstrap-list-group-oninput.html

增加按钮可以删除某条短链
https://zelikk.blogspot.com/2022/08/url-shorten-worker-delete-kv-localstorage.html

访问计数功能 可查询短链 成为功能完整的短链API系统
https://zelikk.blogspot.com/2023/11/url-shorten-worker-visit-count-api-api.html

阅后即焚功能, 可制作一次性二维码
https://zelikk.blogspot.com/2023/11/url-shorten-worker-snapchat-mode.html

增加读取 KV 中全部记录的功能
https://zelikk.blogspot.com/2024/01/url-shorten-worker-load-cloudflare-kv.html

变身网络记事本 Pastebin https://zelikk.blogspot.com/2024/01/url-shorten-worker-pastebin.html

保护 'password' key
https://zelikk.blogspot.com/2024/01/url-shorten-worker-password-protect-keylist.html

变身图床 Image Hosting
https://zelikk.blogspot.com/2024/01/url-shorten-worker-image-hosting-base64.html

变身网络日志本 支持 Markdown
https://zelikk.blogspot.com/2024/02/url-shorten-worker-netjournal.html
https://zelikk.blogspot.com/2024/02/url-shorten-worker-netjournal-markdown.html
https://zelikk.blogspot.com/2024/04/url-shorten-worker-netjournal-markdown.html

用你的STAR告诉我这个Repo对你有用 Welcome STARs! :)

Stargazers over time

url-shorten-worker's People

Contributors

0xflotus avatar a7t avatar cloudtom avatar crazypeace avatar dras51 avatar im-satyendra avatar vanillapod-ze avatar xytom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

url-shorten-worker's Issues

是否可以整个放到pages?

如题,目前是放在worker,然后加载github.io,如果提交到pages,是一样可以调用worker的边缘计算,写一个教程?

自己fork部署问题

为什么我按照教程fork到自己的项目库,改了作者说的地方反而不能用呢?必须是作者原版的workJS才能运行?麻烦看到的大佬帮解答一下,谢谢

有没有办法设置多个密码

有没有办法设置多个密码
或者干脆把这个密码去掉,只看目录,目录对了就让进,然后我自己再单独套一层cf access。
不然如果我把密码分享给别人,之后又不想让他用了,只能换一个密码,如果又有其他人用就太麻烦了。

请教一下,url_sha512 必须用吗

如题,请问不用 url_sha512 有没有什么隐患。
cf KV 每天有一千次免费写入,每次要多存一个 sha 的值,键名直接存短链接的路径不行吗?另外大佬有没有出一个 cf D1 数据库的版本,KV 有一天1000 次存入限制,别的项目也用时可能不够。

Error 1101 Worker threw exception

發生了什麼事?
您已在Cloudflare網路上的網站 上要求頁面。渲染頁面時發生未知錯誤。

在極長網址(測試為930字,非最小)中,出現此錯誤,密碼無此問題

有沒有方法解決?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.