Skip to content

Instantly share code, notes, and snippets.

@gitnepal
Last active March 29, 2019 07:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gitnepal/f43337dfc72165c2dfbc7d09ed7b607f to your computer and use it in GitHub Desktop.
Save gitnepal/f43337dfc72165c2dfbc7d09ed7b607f to your computer and use it in GitHub Desktop.
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
Copy link
Author

@gitnepal
Copy link
Author

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

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