Forum Moderators: coopster

Message Too Old, No Replies

phproxy : how to set allowed host

         

zozzen

5:40 pm on Feb 6, 2008 (gmt 0)

10+ Year Member



Hi, one of my sites will contain political topics and has a high risk of being banned. I'd like to set up a mirror site to let users access my website when it's really banned. After some basic research, the best solution to me is to use PHProxy (open-source proxy listed in sourceforge.net) to mirror my site.

However, phproxy apparently allows users to proxy any websites. In its previous version (phproxy 4.0) , it's possible for admin to set up a string $allowed_host to confine users to proxy a particular host, but in the latest version (phproxy 5.0) the string disappears.

Does anyone here have an experience of using phproxy? Is it possible to set up $allowed_host again in the phproxy?

Another similar problem to me is that when phproxy "fetches" a website, it converts all links too. For example, if the page contains "http://www.webmasterworld.com" , the link will automatically become "http://www.example.com/index.php?q={encoded url} ". Is it possible to stop this conversion if the url is not in $allowed_host?

Any hints and ideas are highly appreciated.

[edited by: dreamcatcher at 7:34 pm (utc) on Feb. 14, 2008]
[edit reason] Use example.com, thanks. [/edit]

dreamcatcher

7:35 pm on Feb 14, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi zozzen,

Have you had any success with this?

dc

zozzen

7:49 am on Feb 17, 2008 (gmt 0)

10+ Year Member



it failed unfortunately.

the URL of a website apparently stores into $_url, but when i want to censor it with strpos(), it doesn't work at all.

I'm quite lost with phproxy now. It seems too complicated to modify it.