I'm trying to create a new window with window.open, but I need to pass the referrer info so that the request doesn't get "locked out" by my .htaccess file. Is there a way in php to pass that info?
Are you talking about the HTTP_REFERER found in the $_SERVER superglobal? If you are, I do believe sending that information is left to the discretion of the browser and not of the script on the website. So there is no way to control that from a remote website, one way or the other.
Hmm.... well, I understand that it is left to the discretion of the browser and that's acceptable to me at this time. I have another method to "secure" content using the Joomla session variables. But having 2 methods can't hurt either. Using just the standard <a href="url link" target="_blank"> method does send the info, but I need the parameter control of window.open. I've read that there are ways to fake the referrer, but I haven't been able to figure it out or find any code. So that's where I'm stuck.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.