Reputation: 519
can i find any php script that act as proxy server(socks ,http,..) and connect to it via firefox (like any other proxy server ) (for example run script first after that script act like proxy,...) i want to bypass filtring
i seen this sourceforge.net/projects/php-proxy Already , i need connect to it like socks proxy
i dont have any server for using as ssh Tunneling or install other proxy application in it i have only server and allow run any php screapt in it
tanks
Upvotes: 0
Views: 1809
Reputation: 1641
A proxy server basically does one simple thing: it loads the date (to make it easier I'll assume it's a website in the rest of answer) you request and sends it to you. Because you do not directly connect to the website, it thinks you are at the location that does request to page: your server.
There are multiple ways to connect to a proxy server, some use a custom protocol, while you can connect to others using http(s) in a web browser. Because you mention you want to connect to your proxy using Firefox, I'll assume you want a web proxy such as hidemyass.com.
When you request a web page on a web proxy, the following things happen in this order:
file_get_contents()
. Alternatively, you can use CURL
for more options and better performance. You save this data in a variable;http://
in the data and replace it with a request to your proxy server;Please note that this would not be the perfect proxy server: for that you would for example also need to support https requests and check AJAX requests (or disable Javascript altogether, which many proxy servers do). If you just want to use a proxy server, I suggest you take a look at existing ones (or at the comments in the Sourceforge project you linked to, which contains links to better alternatives). But if you find this an interesting project to undertake, good luck!
Upvotes: 1