Generation

generate functionMon, 06 Feb 2023

Write a php function that only run if it reffered by a specific domain

$referrer = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : ''; if ($referrer == 'https://www.example.com/') { ... }

Questions about programming?Chat with your personal AI assistant