Total Pageviews

Saturday 30 January 2016

几款基于php的web proxy(网页代理)程序

1. phproxy的项目地址:http://sourceforge.net/projects/poxy/

2,glype的项目地址:www.glype.com

3. php-proxy的项目地址:
https://github.com/Athlon1600/php-proxy-app,
https://github.com/Athlon1600/php-proxy
(演示网站:https://www.php-proxy.com)

4.phpMyProxy is a free, light and powerful php-based proxy script. The script is free and released under a GNU GPL Version 3, so you’re pretty much free to use, share, modify, redistribute, etc. The proxy script is fast and secure, requires a little server resource, encodes web address, supports Gzip Compression to save bandwidth, works with HTTPS (Secure HTTP) connections and provides very easy customization (language translation and template modification). phpMyProxy script requires PHP 4.0.2 or higher with cURL installed and session support.
– Download phpMyProxy Script,http://gpo.zugaina.org/AJAX/Ebuild/2911671, – (official website,官网已打不开)
(It’s features are as follows: Fast and Secure, Requires a little server resource, Encode Web Address, Supports HTTP methods: GET, POST, Supports HTTP Files Uploading, Supports HTTP Authentication, Supports HTTPS (Secure HTTP), Supports Max File Size Limit, Supports Gzip Compression to save bandwidth, Supports Multiple Languages, Supports Multiple Themes, Supports HotLink Prevention, Ability to change behavior for HotLink Prevention, Ability to prevent hotlinking automatically for non-referer visits, Ability to customize domains for HotLink Prevention, Ability to set default proxy options, Ability to freeze proxy options, Ability to block hosts)
5.CGIProxy is a CGI script that acts as an HTTP or FTP proxy. Through it, you can retrieve any resource that is accessible from the server it runs on. This is useful when your own access is limited, but you can reach a server that in turn can reach others that you can’t. In addition, the user is kept as anonymous as possible from any servers. Common uses include: anonymous proxies similar to The Anonymizer, other personal uses, VPN-like functionality, and others. It’s very simple to install, and very configurable. When an HTML resource is retrieved, it’s modified so that all links in it point back through the same proxy, including images, form submissions, and everything else. Once you’re using the proxy, you can browse normally and (almost) forget it’s there. Configurable options include text-only support (to save bandwidth), selective cookie and script removal, simple ad filtering, access restriction by server, custom encoding of target URLs and cookies, and more – there are more than 50 options so far. The script can run under mod_perl unchanged and requires Perl 5.6.1 or later.
6. Zelune(不太好用) is a free web proxy script claiming to be the worlds fastest web proxy script. The script is PHP based and also requires a MySQL database in order to operate. It is easy to install and customize so you can have it up and running in just a few minutes.
7.Surrogafier is an easy to install three tier web proxy written in PHP. Features include the ability to remove cookies, the HTTP referrer field, the HTTP user-agent field, scripts on the page, and objects, altering the user-agent string to whatever you please, and tunneling your proxied traffic through a second proxy. If there is a second public install of this script, two standard proxies could be used, one entered in the proxy settings of your browser, and one entered into the publicly installed web proxy, to create a connection being passed between three separate proxy servers before hitting the final destination. AJAX applications might have problems with Surrogafier! Currently, SSL/TLS is supported through just entering a URL in the field (for opening secure web pages).
https://github.com/BCable/surrogafier
8. Proxono,Proxono is a web based PHP proxy script that was branched from PHProxy when development stopped. The script itself is free and a few plugins. They do charge for some plugins. I have not personally tried this one yet, but will shortly and update this..
Features of Proxono include:
  • cURL downloading - makes everything run faster and smoother
  • Authentication support - login to secure sites via cURL
  • Admin panel - edit any options to make more custom proxy
  • Plugin system - ability to add a lot more features to your proxy
  • Browsing options - choose options on how to browse proxified pages
Offical Proxono Website(官网已打不开)
下载地址:http://www.proxyscripts.com/files/proxono-1.0-linux.zip
--------------

CGIProxy安装笔记


CGIProxy还有n多设置选项,先不管它们。

设置nginx

找到你的nginx设置文件,加上这一段(记得吧secret换成你的路径),然后重启nginx
 
location /secret/ {
    include        fastcgi.conf;
    fastcgi_pass   unix:/tmp/cgiproxy.fcgi.socket;
}

启动CGIProxy

$ ./nph-proxy.cgi start-fcgi
但是我出错了:
Can’t locate Time/HiRes.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/ocal/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usrlib64/perl5 /usr/share/perl5 .) at ./nph-proxy.cgi line 200. BEGIN failed–compilation aborted at ./nph-proxy.cgi line 200.
google一下即可搞定。
$ perl -MCPAN -e ‘install Time::HiRes’
如果提示没找到cpan
yum install perl-devel perl-CPAN
perl -MCPAN -e shell
cpan[2]> install Time::HiRes
cpan[3]> exit
然后是漫长的编译过程,中间要敲几下回车。。。。 出现 FastCGI: manager (pid 9556): server (pid 9791) started 时 恭喜你。。。打开你设置的路径体验一下吧。

用screen在后台运行

$ screen $ ./nph-proxy.cgi start-fcgi
这次简单的尝试一下CGIProxy,如果有时间的话,我会仔细看看配置文件.
----------------
related post:
https://briteming.blogspot.com/2017/07/web-proxy.html
https://briteming.blogspot.com/2015/11/gopee-goweb-proxy.html