Forum Moderators: phranque
#
ProxyRequests On
ProxyVia On
<Directory proxy:*>
Order deny,allow
Deny from all
Allow from www.example.com
</Directory>
#
but users are still able to use the proxy server from any domain but I want proxy to work only for users origination session from www.mydomain.com domain and all others should be blocked by the proxy server. Please help ...
ProxyRequests On
ProxyVia On
<Directory proxy:*>
Order deny,allow
Deny from all
Allow from www.example.com
</Directory>
[edited by: jdMorgan at 6:07 pm (utc) on April 3, 2006]
[edit reason] (Spliced from previous post) [/edit]
Look into a better way to determine whether "users origination session from www.example.com" -- That is, how do you define "user session"? If you have set a user cookie to define a "session", you might be able to check for that instead.
<Directory proxy:*>
#
SetEnvIf Cookie "<your_cookie_name=your_cookie_value>" proxygo
#
Order deny,allow
Deny from all
Allow from proxygo
#
</Directory>
Jim