Proxy Help - I have some questions

Discussion in 'General Business' started by CashNinjas, Nov 3, 2007.

  1. #1
    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.
     
    CashNinjas, Nov 3, 2007 IP
  2. NaNar

    NaNar Prominent Member

    Messages:
    4,215
    Likes Received:
    275
    Best Answers:
    0
    Trophy Points:
    300
    #2
    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.

     
    NaNar, Nov 3, 2007 IP
  3. CashNinjas

    CashNinjas Peon

    Messages:
    656
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Can you please tell me how to do the htacess?
     
    CashNinjas, Nov 3, 2007 IP
  4. BigJonnyB

    BigJonnyB Peon

    Messages:
    325
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    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
     
    BigJonnyB, Nov 3, 2007 IP
  5. CashNinjas

    CashNinjas Peon

    Messages:
    656
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Oh, okay! Maybe that's why it woulden't work.

    Do you know about the WidgetBucks question I had, BigJonnyB?
     
    CashNinjas, Nov 3, 2007 IP
  6. BigJonnyB

    BigJonnyB Peon

    Messages:
    325
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Sorry I completely forgot about that :p.

    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
     
    BigJonnyB, Nov 3, 2007 IP
  7. NaNar

    NaNar Prominent Member

    Messages:
    4,215
    Likes Received:
    275
    Best Answers:
    0
    Trophy Points:
    300
    #7
    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.
     
    NaNar, Nov 3, 2007 IP
  8. CashNinjas

    CashNinjas Peon

    Messages:
    656
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #8
    @BigJonnyB - Thanks! Got it. :)

    @shady - Where exactly do I put that? Also what is my 'extension' ?
     
    CashNinjas, Nov 3, 2007 IP
  9. NaNar

    NaNar Prominent Member

    Messages:
    4,215
    Likes Received:
    275
    Best Answers:
    0
    Trophy Points:
    300
    #9
    should be in the root.
    Open notepad.

    Copy the code...

    extension is info, com, net us etc.
    Save as .htaccess
     
    NaNar, Nov 3, 2007 IP
  10. BigJonnyB

    BigJonnyB Peon

    Messages:
    325
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #10
    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
     
    BigJonnyB, Nov 3, 2007 IP
  11. CashNinjas

    CashNinjas Peon

    Messages:
    656
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Alright, got both!

    Thank you two very much for the help. :D
     
    CashNinjas, Nov 3, 2007 IP