{"id":18637682,"url":"https://github.com/dutchcoders/hodor","last_synced_at":"2025-04-11T10:30:48.362Z","repository":{"id":31522852,"uuid":"35087315","full_name":"dutchcoders/hodor","owner":"dutchcoders","description":"hodor: nginx web application firewall","archived":false,"fork":false,"pushed_at":"2017-02-08T22:30:11.000Z","size":2,"stargazers_count":14,"open_issues_count":0,"forks_count":4,"subscribers_count":6,"default_branch":"master","last_synced_at":"2023-08-03T21:05:37.687Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Lua","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/dutchcoders.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}},"created_at":"2015-05-05T08:26:37.000Z","updated_at":"2023-08-03T21:05:37.687Z","dependencies_parsed_at":"2022-09-09T20:23:25.193Z","dependency_job_id":null,"html_url":"https://github.com/dutchcoders/hodor","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dutchcoders%2Fhodor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dutchcoders%2Fhodor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dutchcoders%2Fhodor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dutchcoders%2Fhodor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dutchcoders","download_url":"https://codeload.github.com/dutchcoders/hodor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223465964,"owners_count":17149765,"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":[],"created_at":"2024-11-07T05:37:24.878Z","updated_at":"2024-11-07T05:37:25.446Z","avatar_url":"https://github.com/dutchcoders.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hodor: nginx proxy filtering\n\nHodor is a library allowing you to filter on host, uri or content-type. \n\n## Todo\n\n* implement geo blocking\n* implement antivirus / clamav\n* implement dnsbl lists\n* implement client ip specific blocking\n* seperate configuration from logic\n* define complex rules\n\n## Implementation\n\nUpdate the nginx.conf\n\n```\nlua_shared_dict my_locks 100k;\nlua_package_path \"lua/?.lua;../lua-resty-core/lib/?.lua;;\";\n\nresolver 8.8.8.8;\n\ninit_by_lua '\n';\n\nserver {\n    listen       0.0.0.0:80;\n    server_name  _;\n\n    header_filter_by_lua_file 'header_filter.lua';\n    access_by_lua_file 'access.lua';\n\n    location / {\n        proxy_ssl_verify off;\n        proxy_pass_header Server;\n        proxy_set_header Host $host;\n        proxy_pass http://$host:80;\n    }\n}\n```\n\n\nReloading the rules\n\n```\nkill -HUP $( cat /usr/local/openresty/nginx/logs/nginx.pid )\n```\n\n## Contributions\n\nContributions are welcome.\n\n## Creators\n\n**Remco Verhoef**\n- \u003chttps://twitter.com/remco_verhoef\u003e\n- \u003chttps://twitter.com/dutchcoders\u003e\n\n## Copyright and license\n\nCode and documentation copyright 2011-2015 Remco Verhoef.\n\nCode released under [the MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdutchcoders%2Fhodor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdutchcoders%2Fhodor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdutchcoders%2Fhodor/lists"}