{"id":19083425,"url":"https://github.com/emrd/nodejs-decline-requests-from-browser","last_synced_at":"2025-10-24T15:39:11.643Z","repository":{"id":253582169,"uuid":"843928679","full_name":"EmrD/nodejs-decline-requests-from-browser","owner":"EmrD","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-17T21:09:17.000Z","size":1413,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-04T19:02:53.017Z","etag":null,"topics":["backend","browser","nodejs","web"],"latest_commit_sha":null,"homepage":"","language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EmrD.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-08-17T21:02:37.000Z","updated_at":"2024-08-19T13:38:35.000Z","dependencies_parsed_at":"2024-08-17T22:23:39.041Z","dependency_job_id":"b8ca814b-f4b7-46d3-8c7d-9eabee7a854b","html_url":"https://github.com/EmrD/nodejs-decline-requests-from-browser","commit_stats":null,"previous_names":["emrd/nodejs-decline-requests-from-browser"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/EmrD/nodejs-decline-requests-from-browser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmrD%2Fnodejs-decline-requests-from-browser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmrD%2Fnodejs-decline-requests-from-browser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmrD%2Fnodejs-decline-requests-from-browser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmrD%2Fnodejs-decline-requests-from-browser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EmrD","download_url":"https://codeload.github.com/EmrD/nodejs-decline-requests-from-browser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmrD%2Fnodejs-decline-requests-from-browser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280821787,"owners_count":26397424,"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-24T02:00:06.418Z","response_time":73,"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":["backend","browser","nodejs","web"],"created_at":"2024-11-09T02:47:26.115Z","updated_at":"2025-10-24T15:39:11.627Z","avatar_url":"https://github.com/EmrD.png","language":"Nix","readme":"# Node.js API Project\n\nThis project is a Node.js API application that blocks access from browsers. Requests coming from browsers are blocked by checking specific `User-Agent` headers, and a 403 Forbidden error is returned to the user. Non-browser clients (e.g., `curl`, Postman) can access the API without issues.\n\n## Getting Started\n\n### Prerequisites\n\nYou need the following software installed on your machine to run this project:\n\n- Node.js (\u003e= 12.x)\n- npm or yarn\n\n### Installation\n\nAfter cloning the repository, install the dependencies using the following commands:\n\n```bash\ngit clone REPO_URL\ncd FOLDER_NAME\nnpm install\nnode index.js\n```\n\n### Testing\n\nTo test the API go to ```http://localhost:3000/ANY_ENDPOINT``` on your browser. You must get this message: \"You can NOT access this API from a browser.\" To test from cURL; run:\n```bash\ncurl http://localhost:3000/api/data\n```\nYou'll get this response: ```Permission Accepted from curl/YOUR_CURL_VERSION```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femrd%2Fnodejs-decline-requests-from-browser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femrd%2Fnodejs-decline-requests-from-browser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femrd%2Fnodejs-decline-requests-from-browser/lists"}