phpknight Posted August 9, 2007 Share Posted August 9, 2007 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? Quote Link to comment Share on other sites More sharing options...
uhmcastillo Posted August 12, 2007 Share Posted August 12, 2007 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? Quote Link to comment Share on other sites More sharing options...
phpknight Posted August 12, 2007 Author Share Posted August 12, 2007 Yes, that helps. I did not see a list of them on that page, though. Can you give me a little more direction on that? Thanks! Quote Link to comment Share on other sites More sharing options...
uhmcastillo Posted August 12, 2007 Share Posted August 12, 2007 http://www.rfc-editor.org/rfc/rfc2616.txt Do a search for "5.3 Request Header Fields" and you should find a list. cheers, -m Quote Link to comment Share on other sites More sharing options...
phpknight Posted August 12, 2007 Author Share Posted August 12, 2007 Hi, I did that and went down through about three pages, but I did not really see a list because Referer was not there. Am I missing something? Quote Link to comment Share on other sites More sharing options...
uhmcastillo Posted August 12, 2007 Share Posted August 12, 2007 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 Quote Link to comment Share on other sites More sharing options...
phpknight Posted August 13, 2007 Author Share Posted August 13, 2007 Great. Thanks for your help! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.