Jump to content

[SOLVED] Quick question


phpknight

Recommended Posts

Because I have no clue about mod_rewrite, I am reading a book all about it, but I hit a snag.  The author wrote:

 

SetEnvIfNoCase Referer !\.rbbowen.com not-linked-from=here=1

 

I understand that not-linked-from-here is a custom environmental variable, but what is "Referer"?  I think it is some sort of environmental variable, but I do not see at on any lists on the tables in the book or on the cheat sheet.  I am used to HTTP_REFERER.  If Apache has a special list, where can I see it?

 

 

Link to comment
https://forums.phpfreaks.com/topic/64044-solved-quick-question/
Share on other sites

After the directive SetEnvIfNoCase (or SetEnvIf) you can use any of the (standard) request header fields, such as User-Agent, Host, or... you guessed it, referer!

 

More info:

http://httpd.apache.org/docs/1.3/mod/mod_setenvif.html

 

Does that help?

Link to comment
https://forums.phpfreaks.com/topic/64044-solved-quick-question/#findComment-321394
Share on other sites

Sorry, it's below the fold in that section, easy to miss.

 

I think these are it:

 

Accept

Accept-Charset

Accept-Encoding

Accept-Language

Authorization

Expect

From

Host

If-Match

If-Modified-Since

If-None-Match

If-Range

If-Unmodified-Since

Max-Forwards

Proxy-Authorization

Range

Referer

TE

User-Agent

Link to comment
https://forums.phpfreaks.com/topic/64044-solved-quick-question/#findComment-321948
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.