1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[HELP] PHP referrer / content issue

Discussion in 'PHP & Perl' started by carlx, Mar 12, 2014.

  1. carlx

    carlx Registered Member

    Joined:
    Dec 28, 2008
    Messages:
    95
    Likes Received:
    88
    Hi,

    I have been trying to do this for a few hours and although i have searched a lot of google and BHW, i still cannot find something that works and nor am i good enough at PHP to change things to my requirements, usually i am but nothing seems to be working on this one.

    What i need is this;

    check HTTP_REFERER > if it contains a url from an array ('google.com','bing.com','somethingelse.co.uk') then return content: X > if it does not contain a string from the array then return content: Y

    If anybody has a script like this, can point me towards one or has any advice then that would be great.

    Cheers.
     
  2. carlx

    carlx Registered Member

    Joined:
    Dec 28, 2008
    Messages:
    95
    Likes Received:
    88
    [RESOLVED] Sorted it, thanks.