A YOURLS-based plugin to restrict access from specific referrer domains.
YOURLS Installation Guide: https://wxsnote.cn/6633.html
- Download the plugin from the releases page and extract it to the
/user/plugins/directory. - Visit the plugin management page (
/admin/plugins.php) and activate the plugin. - Start using it!
- The plugin supports custom language translation. Its
languagesdirectory contains thereferer-restrict-zh_CN.pofile - please download this file first. - Replace
zh_CNin the downloaded filename with your target region's language code (e.g.,en_US). - Download and use the Poedit tool to open the modified
.pofile, then complete the translation for your target language. - After finishing the translation, save the file via Poedit - this will automatically generate a corresponding
.mofile (same filename as the.pofile, different extension). - Place both the translated
.pofile (e.g.,referer-restrict-en_US.po) and the automatically generated.mofile into the plugin'slanguagesdirectory (Note: Not YOURLS' ownlanguagesdirectory). - After completing the above steps, you can enjoy the plugin's custom language support! Feel free to submit your translation files to the plugin repository to contribute to the multilingual ecosystem.
Free for any use - you can perform any operations on this plugin without restrictions.
Author's Blog: Mr. Wang's Notes