### Set up frontend development environment Source: https://github.com/bekkaze/abusebox/blob/main/CONTRIBUTING.md Navigate to the frontend directory, copy the environment example file, install dependencies with Yarn, and start the development server. ```bash cd frontend cp .env.example .env yarn install yarn dev ``` -------------------------------- ### Set up backend development environment Source: https://github.com/bekkaze/abusebox/blob/main/CONTRIBUTING.md Navigate to the backend directory, copy the environment example file, install development dependencies, and start the Uvicorn server with hot reload. ```bash cd backend cp .env.example .env pip install -r requirements-dev.txt uvicorn app.main:app --host 127.0.0.1 --port 8100 --reload ``` -------------------------------- ### Backend Manual Setup Commands Source: https://github.com/bekkaze/abusebox/blob/main/README.md Set up the backend manually: copy the environment file, install Python dependencies, and run the Uvicorn server. The admin password is printed in the terminal on first start. ```bash cd backend cp .env.example .env pip install -r requirements.txt uvicorn app.main:app --host 127.0.0.1 --port 8100 --reload ``` -------------------------------- ### Quick start: clone and run with Docker Compose Source: https://github.com/bekkaze/abusebox/blob/main/README.md Clone the repository and start the stack with Docker Compose. After startup, open http://localhost:3000 and sign in as admin with the password shown in the backend logs, then change it in Settings. ```bash git clone https://github.com/bekkaze/abusebox.git && cd abusebox docker compose up -d ``` -------------------------------- ### Docker Installation Commands Source: https://github.com/bekkaze/abusebox/blob/main/README.md Clone the repository, copy the environment file, and start the Docker containers. The optional --build flag builds from source instead of pulling prebuilt images. ```bash git clone https://github.com/bekkaze/abusebox.git cd abusebox cp backend/.env.example .env # optional: alerts, API keys, admin account docker compose up -d # pulls the prebuilt images (add --build to build from source) ``` -------------------------------- ### Run backend locally with uvicorn Source: https://github.com/bekkaze/abusebox/blob/main/backend/README.md Install development dependencies and start the FastAPI app on 127.0.0.1:8100 with auto-reload. ```bash cd backend pip install -r requirements-dev.txt uvicorn app.main:app --host 127.0.0.1 --port 8100 --reload ``` -------------------------------- ### Install AbuseBox with Docker Compose Source: https://github.com/bekkaze/abusebox/blob/main/site/index.html Run these three commands on any machine with Docker and Compose to install and start AbuseBox. After starting, open http://localhost:3000 and sign in with the default account from the README, then change the password immediately. ```bash $ git clone https://github.com/bekkaze/abusebox.git $ cd abusebox $ docker compose up -d ``` -------------------------------- ### Upgrade from v1.1.x Backup and Pull Commands Source: https://github.com/bekkaze/abusebox/blob/main/README.md Back up the Docker volume, pull the new version, and rebuild the containers. The database migrates automatically on start. ```bash # The volume is named _abusebox-data; `docker volume ls` shows it. docker run --rm -v abusebox_abusebox-data:/data -v "$PWD":/backup alpine tar czf /backup/abusebox-data.tgz -C /data . git pull docker compose up -d --build ``` -------------------------------- ### Run frontend scripts (yarn dev, build, preview, lint) Source: https://github.com/bekkaze/abusebox/blob/main/frontend/README.md Lists the available Yarn scripts for the AbuseBox frontend: start the development server on port 3000, create a production build, preview the production build, and run ESLint checks. ```bash yarn dev # start development server on port 3000 yarn build # production build yarn preview # preview production build yarn lint # eslint checks ``` -------------------------------- ### GET /hostname/list/ Source: https://github.com/bekkaze/abusebox/blob/main/README.md Lists hostnames with optional inclusion of results. Requires authentication. ```APIDOC ## GET /hostname/list/ ### Description Lists hostnames with optional inclusion of results. Requires authentication. ### Method GET ### Endpoint /hostname/list/ ### Parameters #### Query Parameters - **include_result** (boolean) - Optional - Whether to include results in the response. ### Response #### Success Response (200) - **hostnames** (array) - List of hostnames. #### Response Example { "hostnames": [] } ``` -------------------------------- ### GET /user/list/ Source: https://github.com/bekkaze/abusebox/blob/main/README.md Lists all users. Admin only. ```APIDOC ## GET /user/list/ ### Description Lists all users. Admin only. ### Method GET ### Endpoint /user/list/ ### Response #### Success Response (200) - **users** (array) - List of users. #### Response Example { "users": [] } ``` -------------------------------- ### GET /blacklist/quick-check/ Source: https://github.com/bekkaze/abusebox/blob/main/README.md Public endpoint to perform a quick blacklist check for a given hostname. Rate limited to 10 requests per minute per IP and only accepts public addresses. ```APIDOC ## GET /blacklist/quick-check/ ### Description Public endpoint to perform a quick blacklist check for a given hostname. Rate limited to 10 requests per minute per IP and only accepts public addresses. ### Method GET ### Endpoint /blacklist/quick-check/ ### Parameters #### Query Parameters - **hostname** (string) - Required - The hostname to check. ### Response #### Success Response (200) - **result** (object) - The blacklist check result. #### Response Example { "result": {} } ``` -------------------------------- ### GET /tools/dns/ Source: https://github.com/bekkaze/abusebox/blob/main/README.md Performs DNS lookups for a given hostname. Requires authentication. ```APIDOC ## GET /tools/dns/ ### Description Performs DNS lookups for a given hostname. Requires authentication. ### Method GET ### Endpoint /tools/dns/ ### Parameters #### Query Parameters - **hostname** (string) - Required - The hostname to query. ### Response #### Success Response (200) - **data** (object) - DNS data. #### Response Example { "data": {} } ``` -------------------------------- ### GET /tools/export/blacklist/ Source: https://github.com/bekkaze/abusebox/blob/main/README.md Exports blacklist data for a given hostname. Requires authentication. ```APIDOC ## GET /tools/export/blacklist/ ### Description Exports blacklist data for a given hostname. Requires authentication. ### Method GET ### Endpoint /tools/export/blacklist/ ### Parameters #### Query Parameters - **hostname** (string) - Required - The hostname to export. ### Response #### Success Response (200) - **data** (object) - Exported blacklist data. #### Response Example { "data": {} } ``` -------------------------------- ### GET /settings/scheduler/status/ Source: https://github.com/bekkaze/abusebox/blob/main/README.md Retrieves the status of the scheduler. Requires authentication. ```APIDOC ## GET /settings/scheduler/status/ ### Description Retrieves the status of the scheduler. Requires authentication. ### Method GET ### Endpoint /settings/scheduler/status/ ### Response #### Success Response (200) - **status** (string) - Scheduler status. #### Response Example { "status": "running" } ``` -------------------------------- ### Set DNSBL_NAMESERVERS in .env Source: https://github.com/bekkaze/abusebox/blob/main/README.md Configure a custom DNS resolver for blacklist lookups by setting DNSBL_NAMESERVERS in your .env file. Replace the example IP with your resolver's address. ```env DNSBL_NAMESERVERS=192.0.2.53 ``` -------------------------------- ### GET /tools/whois/ Source: https://github.com/bekkaze/abusebox/blob/main/README.md Performs a WHOIS lookup for a given hostname. Requires authentication. ```APIDOC ## GET /tools/whois/ ### Description Performs a WHOIS lookup for a given hostname. Requires authentication. ### Method GET ### Endpoint /tools/whois/ ### Parameters #### Query Parameters - **hostname** (string) - Required - The hostname to query. ### Response #### Success Response (200) - **data** (object) - WHOIS data. #### Response Example { "data": {} } ``` -------------------------------- ### GET /tools/abuseipdb/ Source: https://github.com/bekkaze/abusebox/blob/main/README.md Retrieves AbuseIPDB information for a given hostname. Requires authentication. ```APIDOC ## GET /tools/abuseipdb/ ### Description Retrieves AbuseIPDB information for a given hostname. Requires authentication. ### Method GET ### Endpoint /tools/abuseipdb/ ### Parameters #### Query Parameters - **hostname** (string) - Required - The hostname to query. ### Response #### Success Response (200) - **data** (object) - AbuseIPDB data. #### Response Example { "data": {} } ``` -------------------------------- ### GET /tools/subnet/ Source: https://github.com/bekkaze/abusebox/blob/main/README.md Retrieves subnet information for a given CIDR. Requires authentication. ```APIDOC ## GET /tools/subnet/ ### Description Retrieves subnet information for a given CIDR. Requires authentication. ### Method GET ### Endpoint /tools/subnet/ ### Parameters #### Query Parameters - **cidr** (string) - Required - The CIDR notation of the subnet. ### Response #### Success Response (200) - **data** (object) - Subnet data. #### Response Example { "data": {} } ``` -------------------------------- ### GET /tools/server-status/ Source: https://github.com/bekkaze/abusebox/blob/main/README.md Retrieves server status information for a given hostname. Requires authentication. ```APIDOC ## GET /tools/server-status/ ### Description Retrieves server status information for a given hostname. Requires authentication. ### Method GET ### Endpoint /tools/server-status/ ### Parameters #### Query Parameters - **hostname** (string) - Required - The hostname to query. ### Response #### Success Response (200) - **data** (object) - Server status data. #### Response Example { "data": {} } ``` -------------------------------- ### GET /tools/export/subnet/ Source: https://github.com/bekkaze/abusebox/blob/main/README.md Exports subnet data for a given CIDR. Requires authentication. ```APIDOC ## GET /tools/export/subnet/ ### Description Exports subnet data for a given CIDR. Requires authentication. ### Method GET ### Endpoint /tools/export/subnet/ ### Parameters #### Query Parameters - **cidr** (string) - Required - The CIDR notation of the subnet. ### Response #### Success Response (200) - **data** (object) - Exported subnet data. #### Response Example { "data": {} } ``` -------------------------------- ### GET /tools/ssl/ Source: https://github.com/bekkaze/abusebox/blob/main/README.md Retrieves SSL certificate information for a given hostname. Requires authentication. ```APIDOC ## GET /tools/ssl/ ### Description Retrieves SSL certificate information for a given hostname. Requires authentication. ### Method GET ### Endpoint /tools/ssl/ ### Parameters #### Query Parameters - **hostname** (string) - Required - The hostname to query. ### Response #### Success Response (200) - **data** (object) - SSL certificate data. #### Response Example { "data": {} } ``` -------------------------------- ### GET /events/ Source: https://github.com/bekkaze/abusebox/blob/main/README.md Retrieves events with optional severity filter. Requires authentication. ```APIDOC ## GET /events/ ### Description Retrieves events with optional severity filter. Requires authentication. ### Method GET ### Endpoint /events/ ### Parameters #### Query Parameters - **severity** (string) - Optional - Filter by severity level. ### Response #### Success Response (200) - **events** (array) - List of events. #### Response Example { "events": [] } ``` -------------------------------- ### GET /hostname/{id}/events/ Source: https://github.com/bekkaze/abusebox/blob/main/README.md Retrieves events for a specific hostname. Requires authentication. ```APIDOC ## GET /hostname/{id}/events/ ### Description Retrieves events for a specific hostname. Requires authentication. ### Method GET ### Endpoint /hostname/{id}/events/ ### Parameters #### Path Parameters - **id** (integer) - Required - The ID of the hostname. ### Response #### Success Response (200) - **events** (array) - List of events. #### Response Example { "events": [] } ``` -------------------------------- ### GET /blacklist/resolver-health/ Source: https://github.com/bekkaze/abusebox/blob/main/README.md Checks whether Spamhaus answers AbuseBox's resolver. Requires authentication. ```APIDOC ## GET /blacklist/resolver-health/ ### Description Checks whether Spamhaus answers AbuseBox's resolver. Requires authentication. ### Method GET ### Endpoint /blacklist/resolver-health/ ### Response #### Success Response (200) - **status** (string) - Health status of the resolver. #### Response Example { "status": "healthy" } ``` -------------------------------- ### GET /tools/email-security/ Source: https://github.com/bekkaze/abusebox/blob/main/README.md Checks email security records (SPF, DKIM, DMARC) for a given hostname. Requires authentication. ```APIDOC ## GET /tools/email-security/ ### Description Checks email security records (SPF, DKIM, DMARC) for a given hostname. Requires authentication. ### Method GET ### Endpoint /tools/email-security/ ### Parameters #### Query Parameters - **hostname** (string) - Required - The hostname to query. - **dkim_selectors** (string) - Optional - Comma-separated list of DKIM selectors. ### Response #### Success Response (200) - **data** (object) - Email security data. #### Response Example { "data": {} } ``` -------------------------------- ### GET /hostname/{id}/checks/{check_id} Source: https://github.com/bekkaze/abusebox/blob/main/README.md Retrieves a specific check result for a hostname. Requires authentication. ```APIDOC ## GET /hostname/{id}/checks/{check_id} ### Description Retrieves a specific check result for a hostname. Requires authentication. ### Method GET ### Endpoint /hostname/{id}/checks/{check_id} ### Parameters #### Path Parameters - **id** (integer) - Required - The ID of the hostname. - **check_id** (integer) - Required - The ID of the check. ### Response #### Success Response (200) - **check** (object) - The check result. #### Response Example { "check": {} } ``` -------------------------------- ### Create .env from .env.example Source: https://github.com/bekkaze/abusebox/blob/main/frontend/README.md Copies the .env.example file to .env to set up environment variables. Requires Node.js 20.19 or newer. ```bash cp .env.example .env ``` -------------------------------- ### Build and lint frontend Source: https://github.com/bekkaze/abusebox/blob/main/CONTRIBUTING.md Ensure the frontend builds and passes linting with zero warnings. ```bash cd frontend yarn build yarn lint ``` -------------------------------- ### POST /hostname/bulk/ Source: https://github.com/bekkaze/abusebox/blob/main/README.md Adds up to 300 assets in bulk. Requires authentication. ```APIDOC ## POST /hostname/bulk/ ### Description Adds up to 300 assets in bulk. Requires authentication. ### Method POST ### Endpoint /hostname/bulk/ ### Parameters #### Request Body - **hostnames** (array of strings) - Required - List of hostnames to add. ### Request Example { "hostnames": ["example.com", "8.8.8.8"] } ### Response #### Success Response (200) - **status** (string) - Status of the bulk operation. #### Response Example { "status": "success" } ``` -------------------------------- ### POST /user/create/ Source: https://github.com/bekkaze/abusebox/blob/main/README.md Creates a new user. Admin only. ```APIDOC ## POST /user/create/ ### Description Creates a new user. Admin only. ### Method POST ### Endpoint /user/create/ ### Parameters #### Request Body - **username** (string) - Required - The username for the new user. - **password** (string) - Required - The password for the new user. ### Request Example { "username": "newuser", "password": "password" } ### Response #### Success Response (200) - **status** (string) - Status of the user creation. #### Response Example { "status": "success" } ``` -------------------------------- ### POST /hostname/bulk-action/ Source: https://github.com/bekkaze/abusebox/blob/main/README.md Performs a bulk action on multiple hostnames. Requires authentication. ```APIDOC ## POST /hostname/bulk-action/ ### Description Performs a bulk action on multiple hostnames. Requires authentication. ### Method POST ### Endpoint /hostname/bulk-action/ ### Parameters #### Request Body - **ids** (array of integers) - Required - List of hostname IDs. - **action** (string) - Required - The action to perform (e.g., "recheck"). ### Request Example { "ids": [1, 2], "action": "recheck" } ### Response #### Success Response (200) - **status** (string) - Status of the bulk action. #### Response Example { "status": "success" } ``` -------------------------------- ### Upgrade command for version 1.3.3 Source: https://github.com/bekkaze/abusebox/blob/main/CHANGELOG.md Run this command to upgrade to version 1.3.3. No upgrade steps are required beyond this. ```bash docker compose pull && docker compose up -d ``` -------------------------------- ### Run backend network tests Source: https://github.com/bekkaze/abusebox/blob/main/CONTRIBUTING.md Run live tests that cross-check DNSBL logic against independent DNS queries. Use if you touch DNSBL logic. ```bash python -m pytest -m network ``` -------------------------------- ### POST /settings/scheduler/run/ Source: https://github.com/bekkaze/abusebox/blob/main/README.md Triggers the scheduler to check due assets now. Admin only. ```APIDOC ## POST /settings/scheduler/run/ ### Description Triggers the scheduler to check due assets now. Admin only. ### Method POST ### Endpoint /settings/scheduler/run/ ### Response #### Success Response (200) - **status** (string) - Status of the scheduler run. #### Response Example { "status": "success" } ``` -------------------------------- ### POST /hostname/cidr-import/ Source: https://github.com/bekkaze/abusebox/blob/main/README.md Imports hostnames from a CIDR range. Requires authentication. ```APIDOC ## POST /hostname/cidr-import/ ### Description Imports hostnames from a CIDR range. Requires authentication. ### Method POST ### Endpoint /hostname/cidr-import/ ### Parameters #### Request Body - **cidr** (string) - Required - The CIDR range to import. ### Request Example { "cidr": "203.0.113.0/24" } ### Response #### Success Response (200) - **status** (string) - Status of the import. #### Response Example { "status": "success" } ``` -------------------------------- ### Environment Configuration (.env) Source: https://github.com/bekkaze/abusebox/blob/main/README.md Create a .env file in the project root. Docker Compose reads it automatically and values override compose defaults. Leave APP_SECRET_KEY empty to auto-generate a secret stored next to the database; leave DEFAULT_ADMIN_PASSWORD empty to generate a random one printed in logs. Optional keys enable AbuseIPDB, Spamhaus DQS, custom DNS resolvers, limits, scheduled monitoring, email alerts, and webhook alerts. ```env # Leave empty to auto-generate a secret (stored next to the database) APP_SECRET_KEY= APP_DEBUG=false APP_CORS_ALLOWED_ORIGINS=http://localhost:3000 DATABASE_URL=sqlite:///./app.db # ignored by Docker Compose (always uses the data volume) # Default admin, created on first start only. Leave the password empty to # generate a random one (printed in the logs). DEFAULT_ADMIN_USERNAME=admin DEFAULT_ADMIN_PASSWORD= DEFAULT_ADMIN_EMAIL=admin@abusebox.local DEFAULT_ADMIN_PHONE=11111111 # Optional: AbuseIPDB (free key at https://www.abuseipdb.com/account/api) ABUSEIPDB_API_KEY= # Optional: Spamhaus Data Query Service key (required for commercial use, including ISPs) SPAMHAUS_DQS_KEY= # Optional: your own DNS resolver for blacklist lookups (Docker Compose uses its bundled one) DNSBL_NAMESERVERS= # Optional: limits MAX_ASSETS_PER_USER=1000 # per non-admin user DISABLE_API_DOCS=false # true hides /swagger/, /redoc/ and /openapi.json # Scheduled monitoring SCHEDULER_ENABLED=true SCHEDULER_INTERVAL_MINUTES=360 # Email alerts (optional) SMTP_HOST= SMTP_PORT=587 # 587 uses STARTTLS; 465 uses TLS from the start SMTP_USERNAME= SMTP_PASSWORD= SMTP_FROM_EMAIL= SMTP_USE_TLS=true # Webhook alerts (optional) WEBHOOK_URL= ``` -------------------------------- ### Run pytest offline and network test suites Source: https://github.com/bekkaze/abusebox/blob/main/backend/README.md Run the offline test suite (what CI runs) with `-m "not network"`, or the live DNSBL cross-checks with `-m network` (requires DNS access). ```bash python -m pytest -m "not network" # offline suite (what CI runs) ``` ```bash python -m pytest -m network # live DNSBL cross-checks (needs DNS access) ``` -------------------------------- ### POST /tools/bulk-check-upload/ Source: https://github.com/bekkaze/abusebox/blob/main/README.md Uploads a file containing hostnames for bulk checking. Requires authentication. ```APIDOC ## POST /tools/bulk-check-upload/ ### Description Uploads a file containing hostnames for bulk checking. Requires authentication. ### Method POST ### Endpoint /tools/bulk-check-upload/ ### Parameters #### Request Body - **file** (file) - Required - Multipart file upload (.txt, .csv, or .xlsx). ### Response #### Success Response (200) - **results** (array) - Bulk check results. #### Response Example { "results": [] } ``` -------------------------------- ### Authenticate and Query DNS Tool Source: https://github.com/bekkaze/abusebox/blob/main/README.md Obtains a bearer token via POST /user/login/ and uses it to call the DNS tool endpoint. The token is extracted with jq and passed in the Authorization header. ```bash TOKEN=$(curl -s -X POST localhost:3000/api/user/login/ -H 'Content-Type: application/json' \ -d '{"username":"admin","password":"your-password"}' | jq -r .access) curl -s -H "Authorization: Bearer $TOKEN" "localhost:3000/api/tools/dns/?hostname=example.com" ``` -------------------------------- ### API Endpoints List Source: https://github.com/bekkaze/abusebox/blob/main/README.md Lists all API endpoints. Only the blacklist quick check is public (rate limited to 10 requests per minute per IP, and public addresses only). All other endpoints require a bearer token from POST /user/login/. ```http GET /blacklist/quick-check/?hostname=example.com # public GET /blacklist/resolver-health/ # does Spamhaus answer AbuseBox's resolver? GET /tools/abuseipdb/?hostname=8.8.8.8 GET /tools/whois/?hostname=example.com GET /tools/dns/?hostname=example.com GET /tools/ssl/?hostname=example.com GET /tools/email-security/?hostname=example.com&dkim_selectors=s1,s2 GET /tools/server-status/?hostname=example.com GET /tools/subnet/?cidr=203.0.113.0/24 POST /tools/bulk-check/ # {"hostnames": ["example.com", "8.8.8.8"]} POST /tools/bulk-check-upload/ # multipart file: .txt, .csv or .xlsx GET /tools/export/blacklist/?hostname=example.com GET /tools/export/subnet/?cidr=203.0.113.0/24 POST /hostname/bulk/ # up to 300 assets POST /hostname/cidr-import/ POST /hostname/{id}/recheck/ POST /hostname/bulk-action/ # {"ids": [1, 2], "action": "recheck"} GET /hostname/list/?include_result=false GET /hostname/{id}/checks/{check_id} GET /hostname/{id}/events/ GET /events/?severity=critical GET /settings/scheduler/status/ POST /settings/scheduler/run/ # admin only: check due assets now PUT /settings/notifications/ # admin only POST /settings/notifications/test/ # admin only POST /user/change-password/ POST /user/logout/ # revokes every token of this account POST /user/create/ # admin only GET /user/list/ # admin only PATCH /user/{id}/ # admin only ``` -------------------------------- ### Upgrade command for version 1.3.2 Source: https://github.com/bekkaze/abusebox/blob/main/CHANGELOG.md Run these commands to upgrade to version 1.3.2. Pull the repository first because docker-compose.yml adds a DNS resolver service. ```bash git pull && docker compose pull && docker compose up -d ``` -------------------------------- ### POST /tools/bulk-check/ Source: https://github.com/bekkaze/abusebox/blob/main/README.md Performs bulk checks for multiple hostnames. Requires authentication. ```APIDOC ## POST /tools/bulk-check/ ### Description Performs bulk checks for multiple hostnames. Requires authentication. ### Method POST ### Endpoint /tools/bulk-check/ ### Parameters #### Request Body - **hostnames** (array of strings) - Required - List of hostnames to check. ### Request Example { "hostnames": ["example.com", "8.8.8.8"] } ### Response #### Success Response (200) - **results** (array) - Bulk check results. #### Response Example { "results": [] } ``` -------------------------------- ### Run backend tests (excluding network) Source: https://github.com/bekkaze/abusebox/blob/main/CONTRIBUTING.md Run the backend test suite excluding network tests. This is the same command CI runs. ```bash cd backend python -m pytest -m "not network" ``` -------------------------------- ### Test DNSBL resolver with dig Source: https://github.com/bekkaze/abusebox/blob/main/README.md Use this command to verify that your DNS resolver returns the expected test address for Spamhaus. The output should include 127.0.0.2; if not, the resolver may be blocking or misreporting blacklist queries. ```bash dig +short 2.0.0.127.zen.spamhaus.org ``` -------------------------------- ### POST /settings/notifications/test/ Source: https://github.com/bekkaze/abusebox/blob/main/README.md Sends a test notification. Admin only. ```APIDOC ## POST /settings/notifications/test/ ### Description Sends a test notification. Admin only. ### Method POST ### Endpoint /settings/notifications/test/ ### Response #### Success Response (200) - **status** (string) - Status of the test notification. #### Response Example { "status": "success" } ``` -------------------------------- ### Clone the repository Source: https://github.com/bekkaze/abusebox/blob/main/CONTRIBUTING.md Clone your fork of the AbuseBox repository and navigate into the project directory. ```bash git clone https://github.com//abusebox.git cd abusebox ``` -------------------------------- ### Create a new branch Source: https://github.com/bekkaze/abusebox/blob/main/CONTRIBUTING.md Create a new branch for your feature or fix. ```bash git checkout -b feature/your-feature-name ``` -------------------------------- ### PUT /settings/notifications/ Source: https://github.com/bekkaze/abusebox/blob/main/README.md Updates notification settings. Admin only. ```APIDOC ## PUT /settings/notifications/ ### Description Updates notification settings. Admin only. ### Method PUT ### Endpoint /settings/notifications/ ### Parameters #### Request Body - **settings** (object) - Notification settings. ### Request Example { "settings": {} } ### Response #### Success Response (200) - **status** (string) - Status of the update. #### Response Example { "status": "success" } ``` -------------------------------- ### POST /hostname/{id}/recheck/ Source: https://github.com/bekkaze/abusebox/blob/main/README.md Triggers a recheck for a specific hostname. Requires authentication. ```APIDOC ## POST /hostname/{id}/recheck/ ### Description Triggers a recheck for a specific hostname. Requires authentication. ### Method POST ### Endpoint /hostname/{id}/recheck/ ### Parameters #### Path Parameters - **id** (integer) - Required - The ID of the hostname. ### Response #### Success Response (200) - **status** (string) - Status of the recheck. #### Response Example { "status": "success" } ``` -------------------------------- ### POST /user/change-password/ Source: https://github.com/bekkaze/abusebox/blob/main/README.md Changes the password for the authenticated user. ```APIDOC ## POST /user/change-password/ ### Description Changes the password for the authenticated user. ### Method POST ### Endpoint /user/change-password/ ### Parameters #### Request Body - **old_password** (string) - Required - The current password. - **new_password** (string) - Required - The new password. ### Request Example { "old_password": "old-password", "new_password": "new-password" } ### Response #### Success Response (200) - **status** (string) - Status of the password change. #### Response Example { "status": "success" } ``` -------------------------------- ### POST /user/logout/ Source: https://github.com/bekkaze/abusebox/blob/main/README.md Revokes every token of the authenticated account. ```APIDOC ## POST /user/logout/ ### Description Revokes every token of the authenticated account. ### Method POST ### Endpoint /user/logout/ ### Response #### Success Response (200) - **status** (string) - Status of the logout. #### Response Example { "status": "success" } ``` -------------------------------- ### PATCH /user/{id}/ Source: https://github.com/bekkaze/abusebox/blob/main/README.md Updates a user. Admin only. ```APIDOC ## PATCH /user/{id}/ ### Description Updates a user. Admin only. ### Method PATCH ### Endpoint /user/{id}/ ### Parameters #### Path Parameters - **id** (integer) - Required - The ID of the user. #### Request Body - **fields** (object) - Fields to update. ### Request Example { "fields": {} } ### Response #### Success Response (200) - **status** (string) - Status of the update. #### Response Example { "status": "success" } ``` -------------------------------- ### Check Spamhaus test address with dig Source: https://github.com/bekkaze/abusebox/blob/main/site/index.html Use this command to verify that a blacklist is answering correctly. 127.0.0.2 is Spamhaus's test address and should always return a listing; if it returns nothing, the list may be refusing to answer. ```bash $ dig +short 2.0.0.127.zen.spamhaus.org @8.8.8.8 ```