A Next.js app for redirecting urls, with built-in threat detection.
Metahkg Redirect uses server-side rendering to get data. No api is exposed.
It detects:
- malicous hosts
- malware urls
- if url is not reachable
- if url redirects
- if url contains tracking parameters
If none of above are detected, the app returns a 302 redirect.
Metahkg Redirect determines whether a url is a threat using data from two sources:
- Google Safebrowsing
- urlhaus
- malware filter (for hosts)
Data is saved at the data
directory. For Google Safebrowsing the app would fetch api at runtime.
Metahkg Redirect uses redis for caching. TTL is 30 minutes.
Frontend caching header is also set to 30 minutes, with 30 minutes stale-while-revalidate.
yarn dev
yarn build
yarn start