6

This is the weirdest thing. I have very simple CF code that looks at cgi.HTTP_REFERER. Simply, it looks at referrer. It the link was clicked from outside our main website domain, it displays something. Otherwise, nothing happens. So, if someone clicks a link from FB and it goes to our website, it displays something. If someone clicked the link from our homepage on our website, it does nothing.

There is a specific link that when clicked from our homepage, the "does something" happens. I wrote out all the variables and the http_referrer shows https://m.facebook.com. I wasn't on Facebook when I clicked the link. I wasn't on mobile. I was on my main website homepage when I clicked the link.

Now, here's the only things I can imagine:

  1. We have facebook commenting on that story page.
  2. that URL has been shared on Facebook.

But, we share all of our stories on Facebook and they all have FB commenting so I would think if FB stored this information, I would be having this issue on all pages.

Anyone have any idea why this is happening?

16
  • You directly clicked on link on your website and you have a refer as facebook. Is that what you are telling? Apr 3, 2013 at 13:36
  • Yes, exactly. I was on my own website. Clicked a link to another page on my website and it said I came from m.facebook.com Apr 3, 2013 at 14:02
  • How are you checking it ? Try checking it in browser. Tamper Data plugin may be. Apr 3, 2013 at 14:11
  • When I check it with http_referrer, it shows facebook. When I use PAGE INFO in FF for example, it shows correctly. I have tested in multiple browsers, multiple computers and MAC vs PC. Same results. Apr 3, 2013 at 14:15
  • Can you show us the html code for the link in question?
    – Miguel-F
    Apr 3, 2013 at 14:17

1 Answer 1

1

As with others, my user_agent, remote_addr and an referer are all incorrect. I also see different remote_addr values depending on which browser I use. So whatever you are dumping, it is not the CGI scope for my request.

I suspect you have a function which handles the dumping of the CGI scope, it's in a CFC that's in a persistent scope and you have an unVARed variable in there somewhere? Or your page-caching (possibly on a front-side proxy?) based on browser, and the dump in the cache?

NB: on Opera and Safari I do not get Facebook as the referer.

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.