AHREFS MASS DR CHECKER - PHP

INSTALL
1. Upload folder contents to your hosting/cPanel, for example:
   public_html/dr-checker/
2. Edit config.php.
3. Replace:
   PASTE_YOUR_AHREFS_API_V3_KEY_HERE
   with your Ahrefs API v3 key.
4. Make sure PHP cURL extension is enabled.
5. Open https://yourdomain.com/dr-checker/

IMPORTANT
- Never put the API key in index.php / JavaScript.
- config.php is protected by .htaccess.
- The tool sends requests sequentially at roughly 52 requests/minute.
- Attribution "Domain Rating by Ahrefs" is included in the UI.
- Endpoint used:
  https://api.ahrefs.com/v3/public/domain-rating-free

TEST API FROM TERMINAL
curl "https://api.ahrefs.com/v3/public/domain-rating-free?target=example.com&output=json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"
