All righty! I found the solution:

It might be for help to some other folkes. Here is the code which solves the

                #make sure he is not referred by our  one website
                if (!ereg($HTTP_HOST, $_SERVER[HTTP_REFERER])){
                        #set referer cookie
                        setcookie('referrer', $user_id, 0);



"Andy" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> Hi there,
> I have a tricky problem which I honestly think is not possible to solve.
> However maybe I am wrong.
> As you all know it is possible on to pass a function name just
> behind the adress (e.G. this will redirct to the
> propper page. I did the same thing with member sites (e.G
> Now I am starting a referrer programm. Every
> who follows a link like from anywhere on the net and registeres will be
> tracked and the referrer gets a point. Now I did forget that I do have
> several of this links on my site itself :-) Which means that they have
> aquired on my site by accident :-)
> My question is how can I make sure that they do come from outside and are
> not surfing my site already. I do set a coockie as soon as someone enteres
> this adress, but it would be fantastic if I could do a if statement on
> something to make sure he does not come from my own site. I would like to
> keep all the links like that, just to find a way to track the origin of
> user.
> Thank you so much for any idea on this tricky task,
> Andy

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to