Suljettu

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

Hello,

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?

Taidot: PHP

Näytä lisää: 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

Tietoa työnantajasta:
( 11 arvostelua ) City, Germany

Projektin tunnus: #21759524

7 freelanceria on tarjonnut keskimäärin 29$ tähän työhön

nvbishr

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

$40 USD 1 päivässä
(38 arvostelua)
5.5
shanymathew

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 1 päivässä
(50 arvostelua)
4.7
mingjie323

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 Lisää

$30 USD 2 päivässä
(13 arvostelua)
4.7
TechnicalKnight

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 1 päivässä
(30 arvostelua)
4.5
limitbreak515

⭐⭐⭐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. Lisää

$20 USD 7 päivässä
(4 arvostelua)
3.6
alexand1025

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 7 päivässä
(10 arvostelua)
3.7
hahedazaai2019

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 Lisää

$20 USD 7 päivässä
(0 arvostelua)
0.0