{"id":15578895,"url":"https://github.com/i-rinat/nginx-denyfile","last_synced_at":"2026-04-30T10:40:04.055Z","repository":{"id":141605033,"uuid":"75752764","full_name":"i-rinat/nginx-denyfile","owner":"i-rinat","description":"Deny subdirectory access by presence of a file","archived":false,"fork":false,"pushed_at":"2016-12-06T19:18:19.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-03T21:44:40.970Z","etag":null,"topics":["nginx"],"latest_commit_sha":null,"homepage":"","language":"C","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/i-rinat.png","metadata":{"files":{"readme":"README.rst","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}},"created_at":"2016-12-06T17:02:26.000Z","updated_at":"2019-04-25T04:06:11.000Z","dependencies_parsed_at":"2023-03-16T01:47:45.750Z","dependency_job_id":null,"html_url":"https://github.com/i-rinat/nginx-denyfile","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i-rinat%2Fnginx-denyfile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i-rinat%2Fnginx-denyfile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i-rinat%2Fnginx-denyfile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i-rinat%2Fnginx-denyfile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/i-rinat","download_url":"https://codeload.github.com/i-rinat/nginx-denyfile/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246156029,"owners_count":20732359,"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","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":["nginx"],"created_at":"2024-10-02T19:13:16.553Z","updated_at":"2026-04-30T10:39:59.036Z","avatar_url":"https://github.com/i-rinat.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"nginx-denyfile\n==============\n\n\nnginx-denyfile (internal name is \"ngx_http_access_denyfile_module\") is a module\nfor Nginx web server, that denies access based on presence of a file with\nspecified name either in the same directory, or in any directory above up to\nthe document root.\n\nExample configuration\n---------------------\n\n.. code::\n\n    location / {\n        root html;\n        denyfile noaccess.txt;\n    }\n\n\nDirectives\n----------\n\n======== ========================\nSyntax:  **denyfile** *filename*;\nDefault: \"\"\nContext: http, server, location\n======== ========================\n\nSets name of the file. For example, if configuration have ``denyfile abcd.txt;``\nand there is a file ``${document_root}/subdirectory/abcd.txt``, any requests\nto ``/subdirectory/otherfile.html`` will return \"403 Forbidden\". Requests to\n``/someotherfile.html`` will proceed as usual, though, if there is no file\nnamed ``abcd.txt`` at that directory level too.\n\nEmpty string disables the module.\n\n======== ================================\nSyntax:  **denyfile_recursive** on | off;\nDefault: on\nContext: http, server, location\n======== ================================\n\nThis option enabled, makes module to look up not only in the currently requested\nfile's directory, but in all its parent directories, up to the document root.\n\nInstallation\n------------\n\nDownload source of module somewhere. Download and unpack Nginx source. In Nginx\nsource directory, run:\n\n.. code::\n\n    ./configure --add-module=path/to/nginx-denyfile-module\n    make install\n\nLicense\n-------\n\nThe MIT License. See LICENSE_ for details.\n\n\n.. _LICENSE: LICENSE\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fi-rinat%2Fnginx-denyfile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fi-rinat%2Fnginx-denyfile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fi-rinat%2Fnginx-denyfile/lists"}