{"id":18821664,"url":"https://github.com/goto-eof/ares-guard","last_synced_at":"2026-07-02T21:33:39.801Z","repository":{"id":247156477,"uuid":"825145838","full_name":"goto-eof/ares-guard","owner":"goto-eof","description":"Ares Guard is a java application which allows you to automatically configure Apache2 to allow only authorized indexing bots to access your website.","archived":false,"fork":false,"pushed_at":"2024-07-07T02:15:02.000Z","size":26264,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-24T05:47:59.575Z","etag":null,"topics":["security"],"latest_commit_sha":null,"homepage":"","language":"Java","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/goto-eof.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-07-06T23:19:30.000Z","updated_at":"2024-07-07T02:15:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"cfc34bc6-896c-474a-a834-b57f3fa82a7f","html_url":"https://github.com/goto-eof/ares-guard","commit_stats":null,"previous_names":["goto-eof/ares-guard"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/goto-eof/ares-guard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goto-eof%2Fares-guard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goto-eof%2Fares-guard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goto-eof%2Fares-guard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goto-eof%2Fares-guard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/goto-eof","download_url":"https://codeload.github.com/goto-eof/ares-guard/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goto-eof%2Fares-guard/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35064249,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-02T02:00:06.368Z","response_time":173,"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":["security"],"created_at":"2024-11-08T00:45:09.635Z","updated_at":"2026-07-02T21:33:39.777Z","avatar_url":"https://github.com/goto-eof.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# What is Ares Guard?\n\nAres Guard is a java application which allows you to automatically configure Apache2 to allow only authorized indexing\nbots to access your website.\n\n# How does it work?\n\nThe software, executable from the command line, after specifying the path to the root folder of your site,\nmakes a REST call to the official GoogleBot and BingBot sites (functionality easily extendable to\nother search engines). After having retrieved the list of official IP addresses from **official sources**, the\napplication adds authorization rules for these IPs in the .htaccess file, **without overwriting** the file.\nIf the authorized IPs have been previously added by the software, the software will rewrite them, leaving the contents\nadded by the user intact.\nAfter modifying the `.htaccess` file, the application **overwrites** the `robots.txt` file, allowing access only to\nGoogleBot and BingBot. As I said, this feature could be extended to other bots.\n\n# How can the software be used?\n\nMy idea is to take advantage of Linux's crontab to run the jar periodically. The application would then be executed\nautomatically, updating the list of allowed IP addresses.\nIn order to generate or regenerate Apache2 rules it is necessary to simply pass the path to the root of the website as a\nsingle parameter of the jar. For example:\n\nIn order to print the new rules on the screen:\n\n```\njava -jar ares-guard.jar \"/var/www/my-website.com\"\n```\n\nIn order to print on the screen and **write** the new rules on file (PLEASE BACKUP `.htaccess` AND `robots.txt` FILES\nFIRST):\n\n```\njava -jar ares-guard.jar \"/var/www/my-website.com\" -w\n```\n\n# Download\n\nThe jar file can be downloaded from [here](https://github.com/goto-eof/ares-guard/blob/master/jar).\n\n\u003cimg src=\"https://andre-i.eu:8080/api/v1/ipResource/custom.png?host=https://github.com/goto-eof/ares-guard\" /\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoto-eof%2Fares-guard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoto-eof%2Fares-guard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoto-eof%2Fares-guard/lists"}