{"id":19134549,"url":"https://github.com/azerothcore/mod-ip-tracker","last_synced_at":"2025-05-06T19:28:30.344Z","repository":{"id":43280752,"uuid":"349589250","full_name":"azerothcore/mod-ip-tracker","owner":"azerothcore","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-01T13:18:48.000Z","size":40,"stargazers_count":8,"open_issues_count":0,"forks_count":10,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-05-06T19:28:25.643Z","etag":null,"topics":["azerothcore-module","hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/azerothcore.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}},"created_at":"2021-03-20T00:29:57.000Z","updated_at":"2025-03-01T13:18:50.000Z","dependencies_parsed_at":"2024-04-09T16:47:21.018Z","dependency_job_id":"53815d6f-20cb-40c5-a823-968b67adbada","html_url":"https://github.com/azerothcore/mod-ip-tracker","commit_stats":{"total_commits":19,"total_committers":5,"mean_commits":3.8,"dds":0.3157894736842105,"last_synced_commit":"a4b9ef3fd0a536fa980ff3c52eb47fc802d1fc10"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":"azerothcore/skeleton-module","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azerothcore%2Fmod-ip-tracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azerothcore%2Fmod-ip-tracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azerothcore%2Fmod-ip-tracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azerothcore%2Fmod-ip-tracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/azerothcore","download_url":"https://codeload.github.com/azerothcore/mod-ip-tracker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252752330,"owners_count":21798776,"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":["azerothcore-module","hacktoberfest"],"created_at":"2024-11-09T06:27:06.110Z","updated_at":"2025-05-06T19:28:30.325Z","avatar_url":"https://github.com/azerothcore.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mod-ip-tracker\n\n## Description\n\nStoring all IPs from all accounts and their login times in `account_ip`.\n\n\n## Requirements\n\nmod-ip-tracker requires:\n\n- AzerothCore v3.0.0+\n\n\n## Installation\n\n```\n1) Simply `git clone` the module under the `modules` directory of your AzerothCore source or copy paste it manually.\n2) Import the `auth/base/account_ip.sql` SQL file manually to the `acore_auth` database\n3) Re-run cmake and launch a clean build of AzerothCore\n4) Configure `ip-tracker.conf`\n```\n\n## Usage\n\nGet by name: select all IPs of a given account name `ACCOUNT_NAME`\n\n```sql\nSELECT account.username, account_ip.* FROM account \nINNER JOIN account_ip ON account.id = account_ip.account\nWHERE account.username = 'ACCOUNT_NAME';\n```\n\nWording: given 2 accounts, they are **linked** if they accessed the same IP at some point of time.\n\nLevel 1: select all accounts/IPs linked to a given account ID `123`\n\n```sql\nSELECT account.username, account_ip.* FROM account_ip \nINNER JOIN account ON account.id = account_ip.account\nWHERE ip IN (\n    SELECT ip FROM account_ip WHERE account = 123\n);\n```\n\nLevel 2: select all accounts/IPs linked to all accounts linked to a given account ID `123`\n\n```sql\nSELECT account.username, account_ip.* FROM account_ip INNER JOIN account ON account.id = account_ip.account\nWHERE ip IN (\n\tSELECT ip FROM account_ip WHERE account IN (\n\t\tSELECT account FROM account_ip WHERE ip IN (\n\t\t\tSELECT ip FROM account_ip WHERE account = 123\n\t\t)\n\t)\n);\n```\n\nYou can build up more levels from here, see:\n\n- https://stackoverflow.com/questions/66723604/get-all-accounts-linked-to-a-certain-account-via-ip\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazerothcore%2Fmod-ip-tracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazerothcore%2Fmod-ip-tracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazerothcore%2Fmod-ip-tracker/lists"}