{"id":31856035,"url":"https://github.com/twsh0305/referer-restrict","last_synced_at":"2026-03-16T20:01:45.762Z","repository":{"id":318510129,"uuid":"1071598258","full_name":"twsh0305/referer-restrict","owner":"twsh0305","description":"基于YOURLS的插件，用于限制允许来自哪些域名的访问","archived":false,"fork":false,"pushed_at":"2025-10-07T15:50:25.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-07T17:27:53.233Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/twsh0305.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-07T15:01:01.000Z","updated_at":"2025-10-07T15:50:29.000Z","dependencies_parsed_at":"2025-10-07T17:28:58.373Z","dependency_job_id":"e42f660c-d678-4401-bad2-30461885575a","html_url":"https://github.com/twsh0305/referer-restrict","commit_stats":null,"previous_names":["twsh0305/referer-restrict"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/twsh0305/referer-restrict","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twsh0305%2Freferer-restrict","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twsh0305%2Freferer-restrict/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twsh0305%2Freferer-restrict/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twsh0305%2Freferer-restrict/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twsh0305","download_url":"https://codeload.github.com/twsh0305/referer-restrict/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twsh0305%2Freferer-restrict/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279011543,"owners_count":26084963,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-12T14:01:25.113Z","updated_at":"2026-03-16T20:01:45.755Z","avatar_url":"https://github.com/twsh0305.png","language":"PHP","funding_links":[],"categories":["Plugins"],"sub_categories":["R"],"readme":"# YOURLS Plugin: referer-restrict  [![Listed in Awesome YOURLS!](https://img.shields.io/badge/Awesome-YOURLS-C5A3BE)](https://github.com/YOURLS/awesome-yourls/)\n\nA YOURLS-based plugin to restrict access from specific referrer domains.\n\n[中文文档](https://github.com/twsh0305/referer-restrict/blob/main/README_CN.md)\n\n\u003cimg width=\"2165\" height=\"551\" alt=\"image\" src=\"https://github.com/user-attachments/assets/d05d9c51-bb70-4318-be53-122db886efa4\" /\u003e\n\n## Installation Steps\nYOURLS Installation Guide: [https://wxsnote.cn/6633.html](https://wxsnote.cn/6633.html)\n\n1. Download the plugin from the releases page and extract it to the `/user/plugins/` directory.\n2. Visit the plugin management page (`/admin/plugins.php`) and activate the plugin.\n3. Start using it!\n\n## Translation Support\n1. The plugin supports custom language translation. Its `languages` directory contains the `referer-restrict-zh_CN.po` file - please download this file first.\n2. Replace `zh_CN` in the downloaded filename with your target region's language code (e.g., `en_US`).\n3. Download and use the [Poedit](https://poedit.net/) tool to open the modified `.po` file, then complete the translation for your target language.\n4. After finishing the translation, save the file via Poedit - this will automatically generate a corresponding `.mo` file (same filename as the `.po` file, different extension).\n5. Place both the translated `.po` file (e.g., `referer-restrict-en_US.po`) and the automatically generated `.mo` file into the plugin's `languages` directory (Note: Not YOURLS' own `languages` directory).\n6. 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.\n\n## License\n\nFree for any use - you can perform any operations on this plugin without restrictions.\n\nAuthor's Blog: [Mr. Wang's Notes](https://wxsnote.cn)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwsh0305%2Freferer-restrict","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwsh0305%2Freferer-restrict","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwsh0305%2Freferer-restrict/lists"}