Get source code from website and act like a browser to not get blocked (curl, file_get_contents, fopen)


I'm creating something similar to a proxy browser.

For this I need to get the source code from websites. I tried this in PHP with curl, file_get_contents and fopen. This is working very well for many websites.

But for some websites I'm asked to solve a Captcha or I'm getting a message like "failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in - on line 12".

When opening this website in a browser, there are no problems, although I'm using the same user agent and IP address as in my PHP script. This means, for the website I want to access, there is some difference between my PHP script and my browser. But, what is it? How can I make my PHP script act like my browser for the website I want to get the source code from?

I need to get this work, no matter if you use curl, file_get_contents, fopen or anything else. I'll attach a file with my source code. I'll tell you a URL you can test it with via private chat.

Who can do that for me?

Kemahiran: PHP

Lihat lagi: source code website shoppingcard, write source code website car dealer using ajax, source code website chat flex, free source code website travel, source code website, source code website htmlunit, source code website design animations aspnet, source code website hack, free source code website design java, free source code website youtube, j2ee projects source code website creation, php texas holdem source code website, source code website asp net student fee management system, source code website cart form design, deals2buy source code website, generator source code website, source code website penjualan

Tentang Majikan:
( 11 ulasan ) City, Germany

ID Projek: #21759524

7 pekerja bebas membida secara purata $29 untuk pekerjaan ini


I am PHP cURL expert, please send me details.......................................................................

$40 USD dalam sehari
(38 Ulasan)

Dear Sir am an expert I can do this work perfectly am excellent in php please reply a waiting for you Thank You

$30 USD dalam sehari
(50 Ulasan)

Yes, Sir. I have read your project with care. Thank you for give a chance to prove me by my skills. Your project is very fit to my skills. If you would award it to me, I am sure that I can complete this project with Hi Lagi

$30 USD dalam 2 hari
(13 Ulasan)

I can handle the errors . Give me the list of sites you are facing the error and I will fix them for you using curl. Please share details over chat.

$30 USD dalam sehari
(30 Ulasan)

⭐⭐⭐Respect Clients⭐⭐⭐ How are you? I want to work with you. I am Web ☑️SuperStar☑️ Developer. I can develop your project with high quality and on your time perfectly. You can check my portfolio. https://www.freelancer. Lagi

$20 USD dalam 7 hari
(4 Ulasan)

Hi, ⭐ I can complete this job successfully and quickly. I think you should send the header information in CURL. I am ready to start work immediately. Please contact me, Thanks

$30 USD dalam 7 hari
(10 Ulasan)

Hi, you should handle "cookies" using curl, each captcha contains certain cookie that must save and send on next request. you handle captcha by using: curl_setopt($ch, CURLOPT_COOKIEFILE, $CookieJarFilename) and curl Lagi

$20 USD dalam 7 hari
(0 Ulasan)