?
Solved

Dynamic values for Apache conditions

Posted on 2004-08-23
2
Medium Priority
?
249 Views
Last Modified: 2009-12-16
Hello.


The following can be used with mod_rewrite to block all users except ones with a cookie called "5hf0w7fb4jf7"

       RewriteCond %{HTTP_cookie} !^5hf0w7fb4jf7

Because the cookie name changes, I need to something dynamic in the place of "5hf0w7fb4jf7" like:

       RewriteCond %{HTTP_cookie} !%{_Value_From_A_Database_Feild_}
or
       RewriteCond %{HTTP_cookie} !%{_Value_of_a_file_called_access_}
or
       RewriteCond %{HTTP_cookie} !%{_any_other_dynamic_sorce_}

Can I call a dynamic value from somewhere in a condition?

Thanks!
0
Comment
Question by:hankknight
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 16

Author Comment

by:hankknight
ID: 11879835
Looks like RewriteMap do what I need
0
 
LVL 2

Accepted Solution

by:
perldog earned 2000 total points
ID: 12073960
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question