Hey guys, I'm making my first proxy soon, and I'm using PHProxy with this template: http://www.freeproxytemplates.com/phproxy-template-6/ I have a few questions: 1. I have the 'hotlink' code, but when I place it after <?php, the page says there's somethign wrong with like.. line 25 or so. How to fix?(PM me and I will show you) 2.I want to place a WidgetBucks under the "About web proxies and anonymous web surfing" section towards the bottom. I want it to the left, so that I can still have text to the right of the widgetbucks. Can someone tell me where in the coding I would place the widgetbucks code for my ad? Just those two questions. All help is appreciated, thanks in advance.
Hi. You can try a couple of our proxy themes -- this one http://www.aproxytheme.com/2007/10/29/black-and-orange-php-proxy-theme/ actually has a spot for widgetbucks ready, all you have to do is add your code. I would also recommend using htaccess to block hotlinking as the php mod does not work.
You don't need to add an extra hotlinking code since hotlinking is inbuilt to the later versions of phproxy. To enable it, find the index.php file, open it, and find: 'allow_hotlinking' => 0, 0 = No (do not allow hotlinking) 1 = Yes (allow hotlinking) If you have cpanel, there is a hotlinking option which will automatically add .htacess for you, with the right code. Remember to allow all versions of your domain though: www.mydomain.com mydomain.com JB
Oh, okay! Maybe that's why it woulden't work. Do you know about the WidgetBucks question I had, BigJonnyB?
Sorry I completely forgot about that . I haven't yet used WidgetBucks, but would imagine that it is just a case of putting the code in index.inc - you'll see the about web proxies header on about line 164 (three quarters of the way down). It would need to go under the header, but before the paragraph text. You will probably find that you'd need to use tables to make the text align to the right...maybe something like this (no promises!): <table width="100%"> <tr> <td> widgetbucks code here </td> <td> about proxy text here</td> </tr> </table> I know this is probably an 'ugly' way of doing it, and there is probably a better way.., but its an option! Just going back to the hotlinking, you can use .htaccess and also disable it in the script (from 1 to 0 if necessary) just to make sure - no harm in using both . I'd also suggest that you think about banning chinese and Iranian traffic, as it tends to be abusive and wont monetise very well at all. Quality traffic is where the money is! JB
Just be careful using that mod, I had it on and was getting gigs upon gigs of bandwidth usage. Add this to your htaccess, it's quite simple and works and can't hurt to be doubly sure RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://(.+\.)?yourdomain\.tld/ [NC] RewriteCond %{HTTP_REFERER} !^$ RewriteRule .*.(jpe?g|gif|bmp|png)$ /images/stop.jpg [L] Code (markup): where your domain is your domain, tld is the extension I don't use the image but leave it there.
should be in the root. Open notepad. Copy the code... extension is info, com, net us etc. Save as .htaccess
just a note - save the .htacess file as something else before uploading it. Once you have uploaded it, rename it. Otherwise you might not see the file (as it would be invisible, depends how your system is setup). I agree with Shadey - definitely use .htacess as well as I have heard of ways to get round it.. JB