Forum Moderators: open

Message Too Old, No Replies

Code to change HTTP_REFERER variable from web page?

         

psterling

11:30 pm on Nov 11, 2003 (gmt 0)

10+ Year Member



Do you know of any way to dynamically change the referrer variable for all visitors of my website? I'm trying to POST a form to a search engine, but the engine needs an empty referrer to return results...

I've tried defining the variable as hidden in the posted form, but that obviously doesn't work. I'm pretty sure this is possible...

Thanks.

DrDoc

11:45 pm on Nov 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You need to write a PHP/Perl script to handle this.

psterling

10:26 pm on Nov 12, 2003 (gmt 0)

10+ Year Member



I started learning a little perl over the last several years, but since we recently moved our website to a friend's host, we can no longer use perl scripts (we moved from a unix host to a windows 2000 host). I didn't realize this at the time, or we wouldn't have switched. The host says we can use ASP or ASP.net. Does this mean we can still use PHP? If so, does anyone know what kind of script to write to dynamically change the http_referer variable on all visiting browsers?

DrDoc

11:16 pm on Nov 12, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Most hosts (no matter if it's Win/Unix) have Perl and PHP installed. Check with them to make sure...