Indeed, the context in which this is being called is important. If being
checked, for example, from a dynamically generated image (inside a <img>
tag), the referer header would end up being the current URL of the page.
AFAIK, the header("http_referer") is working properly, since it's simply
passing the request for that header to the underlying server.
-Jesse
On Wed, May 27, 2015 at 6:49 PM, Evgeny M <[email protected]> wrote:
> Maybe you call this in a script/json returning controller? Any javascript
> file included in a page will have referer equal to the page url.
>
> вторник, 26 мая 2015 г., 16:07:00 UTC+3 пользователь Caiyun Deng написал:
>>
>> Hi!
>> Req:header("referer") is current url, not where the request originated.
>> Do i use it by the wrong way?
>>
> --
> You received this message because you are subscribed to the Google Groups
> "ChicagoBoss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> Visit this group at http://groups.google.com/group/chicagoboss.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/chicagoboss/9966d129-c887-4075-8277-0cd6d9706566%40googlegroups.com
> <https://groups.google.com/d/msgid/chicagoboss/9966d129-c887-4075-8277-0cd6d9706566%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>
--
Jesse Gumm
Owner, Sigma Star Systems
414.940.4866 || sigma-star.com || @jessegumm
--
You received this message because you are subscribed to the Google Groups
"ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit
https://groups.google.com/d/msgid/chicagoboss/CAPTXyXc0beoWA4NGkZ0iejscgrFCtbByU1-AcCnPXwde-MPzbA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.