Thread: New PHProxy.
View Single Post
01-20-2007, 01:13 AM
#22
Salathe is offline Salathe
Salathe's Avatar
Status: Community Archaeologist
Join date: Jul 2004
Location: Scotland
Expertise: Software Development
Software: vim, PHP
 
Posts: 3,820
iTrader: 25 / 100%
 

Salathe will become famous soon enough

Send a message via MSN to Salathe

  Old

About the blank pages

PHProxy 0.5 has hotlink prevention turned on by default. There are a few config settings which you can change to suit your needs.
allow_hotlinking (default: 0) [Line 38 index.php]
  • 0 = No hotlinking.
  • 1 = Allow hotlinking.
If hotlinking is allowed, people can embed proxied urls into their sites for things like images and videos which can steal a huge amount of bandwidth.
upon_hotlink (default: 2) [Line 39 index.php]
  • 1 = Redirect visitor to your homepage
  • 2 = Send 404 (File not found) error [this is the blank page you're all seeing]
  • You can also set upon_hotlink to be a string representing the URL to forward users to (eg. 'upon_hotlink' => 'http://yourproxy.com/landingpage.php')
$_hotlink_domains (default: array()) [Line 86 index.php]
There is the ability to specify which domains are allowed to hotlink proxied files. This setting allows the sites that you specify to hotlink files even if you have set allow_hotlinking to 0.