Last active
March 29, 2019 07:37
-
-
Save gitnepal/f43337dfc72165c2dfbc7d09ed7b607f to your computer and use it in GitHub Desktop.
php-custom-referrer.php | bypassing csrf protections
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
<meta name="referrer" content="no-referrer">