How do I write a simple PHP transparent proxy?

后端 未结 4 683
迷失自我
迷失自我 2021-01-06 06:04

I need to make a proxy script that can access a page hidden behind a login screen. I do not need the proxy to \"simulate\" logging in, instead the login page HTML should be

4条回答
  •  有刺的猬
    2021-01-06 06:56

    I would recommand using Curl (php library that you might need to activate in your php.ini) It's used to manipulate remote websites, handling cookies and every http parameters you need. You'll have to write your proxy based on the web pages you're hitting, but it'll make the job.

提交回复
热议问题