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/') { ... }

Want to kickstart your project?Use the new AI Studio to create your code