Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Page recommendation without HTTP_REFERRER

Status
Not open for further replies.

crighton

Programmer
Aug 31, 2001
7
ES
Hi,

I'm looking to add a "Recommend this page" link to a site but the ISP has disabled HTTP_REFERRER. The page URLS include query strings (.php?ID=1234&Item=3456 etc).

Can anyone suggest another approach that will include the full page URL?

Thanks,

Gary
 
Are you trying to access HTTP_REFERRER in the page that they recommed stuff to?

Example:

On page some_page.php you have a link to recommend the page. The link goes to
Code:
[URL unfurl="true"]http://domain.com/process_recommendation.php?ID=1234&Item=3456[/URL]

Why not include a $PHP_SELF in the link as an argument...
Code:
<a href=&quot;<?
echo &quot;[URL unfurl="true"]http://domain.com/process_recommendation.php?ID=1234&Item=3456&referrer=http://theirdomain.com/&quot;.$PHP_SELF;[/URL]
?>&quot;>Recommend this page</a>

Then in process_recommendation.php you have the referrer!

I dunno if this it what you're looking for, but its an idea. Hope I was able to help. -gerrygerry
Go To
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top