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.envto.env - Change
REDIS_HOSTto your host (usuallylocalhost) - Change others variable to fit your environment (
REDIS_PORT,REDIS_PASSWORD,PORT,TIMEZONE) - Install package using
npm installoryarn install - Run
npm start
- Clone the project
- Rename
example.envto.env - Change others variable to fit your environment (
PORT,TIMEZONE) - Run
docker-compose up -dto run the container