1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Hotlinking and serving ads in PHProxy

Discussion in 'General Business' started by nnet, Feb 9, 2007.

  1. #1
    Ive got a phproxy 0.4 proxy that's going extremely well in traffic, but like just about every other person who has ever owned a proxy has experienced, I'm having problems with hotlinking, not only images but other sites (such as goodwaiter) delivering proxied pages to web surfers that some how excludes my url_form file from appearing up top on the proxied pages.

    Now it's easy enough to block the hotlinking, but I don't want to do that, after all why turn away potential customers, what I'm lookng at doing is setting up a modrewrite in the .htaccess file to force every page to show at least one ad spot.

    A similar idea can be viewed at AListApart here, although in this example it's image files.

    The issue with phproxy, as opposed to cgiproxy, is that the hotlinked files are rendered index.php?xxxxxxxxxxxxxx etc... so the AListApart example doesn't work (it does with cgiproxy for those of you who use cgiproxy)

    Can anyone suggest a way of making the AListApart script work with phproxy? or perhaps do you have any suggestions on other ways of implementing ads against hotlinked traffic?

    thanks.
     
    nnet, Feb 9, 2007 IP
  2. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #2
    Add this in the PHP part:
     
    rochow, Feb 9, 2007 IP
  3. nnet

    nnet Peon

    Messages:
    347
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks rochow, I'll give it a shot now.
     
    nnet, Feb 9, 2007 IP
  4. nnet

    nnet Peon

    Messages:
    347
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Sorry, thanks for the suggestion, but that's not what I'm after. I'm not after a basic hotlinking script, I'm not trying to block the hotlinking, but show the hotlinked sites url_form and/or an ad block in the same way the AlistApart script shows text above the image.

    Anyone else have any ideas?
     
    nnet, Feb 9, 2007 IP
  5. Nathy

    Nathy Active Member

    Messages:
    435
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    70
    #5
    Hey I have done this to my proxy and I can show you how if you add me to MSN. (it's in my profile)
    It's easier to explain on there.
     
    Nathy, Feb 9, 2007 IP