?

Search Help Board

PHP FAQ
PHP Articles
PHP Help
Bulletin Board

PHP Manual (NEW!)
First Time PHP'ers
Help with programming
Sql assignment help
PHP Homework Help


C# Help

?
?Changing Apache Log/Environment entries
Author:??(---.skyriver.net)
Date:???07-08-03 10:16

Hi all,

I have a question which I'll try to convey as best as I can. I want to
change the referer variable so when I do a:

header("Location: $location");

the log files on the resulting location have the information in the referer
environment variable that I have set, not what was originally in that
referer variable.

Here's an example.

Someone does a search on yahoo for the term 'search engine positioning'. The
referer information in the log contains something similar to the following:

host156.wdia.com - - [05/Jul/2003:13:35:27 -0700] "GET
?term=search+engine+positioning bullseye.html HTTP/1.1" 200
8688
"http://us.rd.yahoo.com/search/navbar/nexts/*-http://search.yahoo.com/search
?p=search+engine+positioning&xargs=02u3hs9yoaKCstSjWzAFC1QsyyctTTIMFUAACqRb4
F&b=21" "Mozilla/4.0 (compatible ; MSIE 4.0 ; Windows 95/98 ; 1236446)"

I want to change that information by pulling the variables after the http so
the only thing passed is the http info.

Can this be done?

A way I've gotten around it that is not acceptable is to use a javascript
form submit instead of the header function. This won't work because we have
a requirement that our users can hit the back button on their browser.
Hitting the back button with the javascript solution just resubmits the
javascript form.

Thanks so much,

Guy Davis

?Topics Author? Date
?Changing Apache Log/Environment entries??new
Guy Davis 07-08-03 10:16?
Go to Top??|??Go to Topic??|??Flat View??|??Search?
??|??
New Topic
?Reply To This Message
?Your Name:
?Your Email:
?Subject:
Email replies to this thread, to the address above.
??wrote: > > Hi all, > > I have a question which I'll try to convey as best as I can. > I want to > change the referer variable so when I do a: > > header("Location: $location"); > > the log files on the resulting location have the information > in the referer > environment variable that I have set, not what was originally > in that > referer variable. > > Here's an example. > > Someone does a search on yahoo for the term 'search engine > positioning'. The > referer information in the log contains something similar to > the following: > > host156.wdia.com - - [05/Jul/2003:13:35:27 -0700] "GET > ?term=search+engine+positioning bullseye.html HTTP/1.1" 200 > 8688 > "http://us.rd.yahoo.com/search/navbar/nexts/*-http://search.yahoo.com/search > ?p=search+engine+positioning&xargs=02u3hs9yoaKCstSjWzAFC1QsyyctTTIMFUAACqRb4 > F&b=21" "Mozilla/4.0 (compatible ; MSIE 4.0 ; Windows 95/98 ; > 1236446)" > > I want to change that information by pulling the variables > after the http so > the only thing passed is the http info. > > Can this be done? > > A way I've gotten around it that is not acceptable is to use > a javascript > form submit instead of the header function. This won't work > because we have > a requirement that our users can hit the back button on their > browser. > Hitting the back button with the javascript solution just > resubmits the > javascript form. > > Thanks so much, > > Guy Davis ">??

Provided By
Phorum