Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
_____________________________________________________________________
contact
_____________________________________________________________________
email: phproxy.support@gmail.com
website: http://whitefyre.com/
http://whitefyre.com/forums/
phproxy.support@gmail.com
table of contents
_____________________________________________________________________
1. license
2. what is phproxy?
3. how it works
4. requirements
5. installation
6. configurable script variables
7. available options
8. disclaimer
9. bugs and limitations
10. changelog, faq, todo, license, bugs, limitations
11. credits
1. license
_____________________________________________________________________
2. what is phproxy?
_____________________________________________________________________
3. how it works
_____________________________________________________________________
you simply supply a url to the form and click browse. the script then
accesses that url, and if it has any html contents, it modifies
any urls so that they point back to the script. of course, there is more
to it than this, but if you would like to know more in
detail, view the source code.
comments have yet to be added.
4. requirements
_____________________________________________________________________
5. installation
_____________________________________________________________________
simply upload these files to a directory of your liking (prefrebly in its own
directory):
- index.php
- index.inc.php
- style.css
you can rename index.php without any problems, but not index.inc.php.
your script will still function normally without these settings though.
- $_flags:
__________
this array contains the default values for the browsing options which
are explained in section 7.
- $_frozen_flags:
_________________
when a flag is frozen, it is no longer shown in the url forms, and the
user won't be able to change its value. a frozen flag will always
assume its value given in $_flags. this is useful for forcing
a specific url encoding, or forcing the mini url form to always be
there for instance.
0 is for not frozen. 1 is for frozen. default: all are unfrozen.
- $_labels:
___________
the labels on flags.
- $_hosts:
__________
- $_hotlink_domains:
____________________
this array holds entries of domain names which are allowed to hotlink
through your proxy when allow_hotlinking is 0.
- $_insert:
___________
7. available options
_____________________________________________________________________
+-------------------------------------------------------------------+
| option | explanation |
+-------------------------------------------------------------------+
| include form | includes a mini url-form on every html page for |
| | easier browsing. |
| remove scripts | remove all sorts of client-side scripting |
| | (i.e. javascript). removal is not perfect. some |
| | scripts might slip by here and there. |
| accept cookies | accept http cookies |
| show images | show images. you might want to turn this off if |
| | you want to save your server's bandwith. |
| show referer | show referring website in http headers. this |
| | will show the base url for the website you're |
| | currently viewing. because many website disable |
| | hotlinking, this can be quite useful. |
| rotate13 | use rotate13 encoding on the url. * |
| base64 | use base64 encoding on the url. * |
| strip meta | strip meta html tags |
| strip title | strip website title |
| session cookies| store cookies for this current session only |
+-------------------------------------------------------------------+
* only one type of encoding will be used even if both are selected
8. disclaimer
_____________________________________________________________________
the best thing you could do if you have enough control over your web server
and can compile custom builds of php is to delete a single line in a php source
code file called "php_variables.c" located in the "main" directory.
the function in question is called "php_register_variable_ex". i've only checked
this with php v4.4.4 and the exact line to delete is 117th line which basically
consists of this:
case '.':
now just compile and install php and everything should be fine. just make
sure that you have register_globals off or something might get messed up.
i've done this on my demo install on http://grab.cc/ and it's working
flawlessly.
a third limitation for web proxies is content accessed from within proxied
flash and java applications and such. since the proxy script doesn't have access
to the source code of these applications, the links which they may decide
to stream or access will not be proxified. there's no easy solution for this
right now.
phproxy also doesn't support ftp. this may or may not be introduced
in future releases, but there are no current plans for ftp support.
11. credits
_____________________________________________________________________