Discord Phishing API list with Redis and Docker
- You can access to blacklist domain and blacklist links at this repo.
- I have a public API here.
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 |
- Download and setup redis
- Clone the project
- Rename
example.env
to.env
- Change
REDIS_HOST
to your host (usuallylocalhost
) - Change others variable to fit your environment (
REDIS_PORT
,REDIS_PASSWORD
,PORT
,TIMEZONE
) - Install package using
npm install
oryarn install
- Run
npm start
- Clone the project
- Rename
example.env
to.env
- Change others variable to fit your environment (
PORT
,TIMEZONE
) - Run
docker-compose up -d
to run the container