Skip to content

Instantly share code, notes, and snippets.

@gitnepal
Last active Mar 29, 2019
Embed
What would you like to do?
php-custom-referrer.php | bypassing csrf protections
<?PHP
$desired_referer = "http://rootnep.al";
$site_z = "http://www.whatismyreferer.com/";
$ch = curl_init();
curl_setopt ($ch, CURLOPT_REFERER, $desired_referer);
curl_setopt ($ch, CURLOPT_URL, $site_z);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_exec ($ch);
curl_close ($ch);
?>
@gitnepal

This comment has been minimized.

Copy link
Owner Author

@gitnepal gitnepal commented Mar 29, 2019

No description provided.

@gitnepal

This comment has been minimized.

Copy link
Owner Author

@gitnepal gitnepal commented Mar 29, 2019

<meta name="referrer" content="no-referrer">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment