Jump to content

[SOLVED] Forbidden error - http://website.com/page.php?url=http://www.othersite.com


scarhand

Recommended Posts

What does page.php do with the $_GET['url'] variable?

 

if (isset($_GET['url']))
{
  $url = $_GET['url'];
  
  $gfcontent = file_get_contents($url);
  echo $gfcontent;
}
else
{
  die('no url specified');
}

 

but it doesnt even work if i use, say, http://website.com/page.php?anythinghere=http://www.othersite.com, i still get a forbidden error

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.