English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i have to put a link on my site but when clicked, next site must not see http referral - it must be empty. how to do that?

example: we have A.php and B.php. on A.php i put ahref to B.php but when B.php displays $_SERVER['HTTP_REFERER'], that must be blank and not set to A.php.

how to do that? popup window, iframe, javascript, how?

2006-09-06 09:40:08 · 2 answers · asked by tiomanisland 2 in Computers & Internet Programming & Design

thats not what i asked (answer 1). i am asking from a programmer perspective.

2006-09-06 09:52:22 · update #1

2 answers

IE doesn't always provide a referer in a new window pop up, but that doesn't work for Firefox or probably any other browser. The referer cannot be suppressed by the referring page since this is part of the http request that the browser is designed to make.

2006-09-06 09:44:32 · answer #1 · answered by John J 6 · 0 0

actually, i think #1 did answer your question.

you can try calling up the 2nd website by using pop-up since sometimes IE does not supply the referrer value. caveat: this may not work be the case with other browsers.

as a programmer, i do not know of a way to programatically suppress or manipulate the referrer value. that is built into the browser's http headers process. i woud imagine that is so webmasters could not falsify header info to artificially inflate their click counts for search engine ranking and advertising purposes.

p.s.>> be nice to answerers, they're doing doing you a favor when they answer. we might get a few points and some satisfaction out of helping others, but nothing more than that.

2006-09-06 17:33:28 · answer #2 · answered by country bear 2 · 0 0

fedest.com, questions and answers