Discord Phishing API list with Redis and Docker
Some API requests require the use of a generated API key. To set API key, please add AUTHORIZATION
to your .env
file. If not the default API key is secret
. To authenticate an API request, you should provide your API key in the Authorization header.
Method | Endpoint | Description | Require Authorzation Header? |
---|---|---|---|
GET |
/all |
Get all data (includes blacklist links and domains) | No |
GET |
/links |
Get all blacklist domains | No |
GET |
/check?url={query} |
Check if a url is in blacklist | No |
GET |
/trace-redirect?url={query} |
Trace redirect a url (shorten link) | No |
POST |
/adddomain |
Add domain to blacklist (Require url in body) | Yes |
POST |
/addlink |
Add link to blacklist (Require url in body) | Yes |
example.env
to .env
REDIS_HOST
to your host (usually localhost
)REDIS_PORT
, REDIS_PASSWORD
, PORT
, TIMEZONE
)npm install
or yarn install
npm start
example.env
to .env
PORT
, TIMEZONE
)docker-compose up -d
to run the container