-
Notifications
You must be signed in to change notification settings - Fork 1.3k
避免公开 根路径 / 导致被其它人滥用 #38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
添加对Random_Key 是否重复的检查,防止恰好生成了相同的6位随机字符串,之前的 URL 就被替换的情况发生 完善对URL合法性的检查
if 嵌套的等效写法
* Add API document This is the API document for Url-Shorten-Worker. * Update README.md
Add a config which allow you to customize some behaviour of the Url-Shorten-Worker. You can set custom theme by modify the config.theme. There are two theme you can choose default and urlcool. Set config.theme to "theme/urlcool" to use the urlcool theme. Leave the config.theme to be blank to use the default theme. Also you can use config to control the CORS behaviour and HTTP Referer header.
Fix some issues
…ble. (xyTom#30) Co-authored-by: David <davvido51gmail.com>
This reverts commit 60f2d7e.
Open
感谢贡献代码,由于新增功能较多,故我觉得可以成为完全独立的一个版本,所以创建了一个新的分支用于合并。 目前Url-Shorten-Worker共有两个版本: 原版:https://github.com/xyTom/Url-Shorten-Worker/ 用户可根据自身情况选择需要的版本进行部署 再次感谢crazypeace贡献代码,也欢迎其他的朋友提交pull request贡献代码! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
在访问 根路径 / 时,返回404
只有在访问一个秘密路径时,才返回正常的使用页面
修改说明:
https://zelikk.blogspot.com/2022/07/url-shorten-worker-hide.html
部署教程:
https://zelikk.blogspot.com/2022/07/url-shorten-worker-hide-tutorial.html