Jump to content

disguise php script as a browser - facebook


wardy277

Recommended Posts

Hi,

 

I have tried searching for a solution to this but i dont really know what to search for. What i am working on is a university project and am starting by messing around with websites and mining them.

 

what i want is to use the file_get_contents function to get a webpage and firstly display its content. simple to start. My problem starts when i tried to do it with facebook. It recognized that my script was not a browser and returned a javascript redirect to a page which said:

 

You are using an incompatible web browser.

 

Sorry, we're not cool enough to support your browser. Please keep it real with one of the following browsers:

 

    * Firefox

    * Opera

    * Safari

    * Flock

 

Is it possible to send headers with the function as if it was firefox? Also does anyone know if they use cookies also?

 

any help will be appreciated,

 

Chris

 

 

You want to use cURL to make your requests.

 

http://www.google.ca/search?q=php+curl+mimic+browser

 

I like to use the Developer and Tamper Data add-ons for Firefox... you can see all the headers firefox is sending, and replicate them :)

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.