View Single Post
Old 02-25-2003, 08:36 AM  
Bear
Confirmed User
 
Join Date: Jul 2001
Posts: 261
Thanks a lot.

I am using RH Linux. Running Apache 1.3.22.

Here is my .htaccess:

deny from all
allow from 194.149.242.1
allow from 194.149.242.3
allow from 194.149.242.11
allow from 194.149.242.12
allow from 194.149.242.241
allow from 195.68.121.1
allow from 195.68.121.14
allow from 195.68.121.15
allow from 195.68.121.17
allow from 195.68.121.19
allow from 195.68.121.24
allow from 212.71.31.210
allow from 212.121.204.20
allow from 212.147.118.14
allow from 212.187.157.60
allow from 212.155.171.128
allow from 217.56.72.13
allow from 195.243.119.43
allow from 208.59.199.25
AuthName "Member Area"
AuthType Basic
AuthUserFile /path/.htpasswd
require valid-user
<Files .*>
order allow,deny
deny from all
</Files>
satisfy any
RewriteEngine on
RewriteCond /path/cgi-bin/sentry/admin/data/suspended/%{REMOTE_USER} -f
RewriteRule /* /share.html [L,R]

RewriteCond /path/cgi-bin/sentry/admin/data/ips/%{REMOTE_ADDR} !-f
RewriteCond %{HTTP_REFERER} !^http://www.site.com/login/ [NC]
RewriteCond %{HTTP_COOKIE} !^setup.*
RewriteRule /* http://www.site.com/cgi-bin/sentry/sentry.cgi?setup+%{REMOTE_USER}+%{REMOTE_ADDR}+%{REQUEST_URI}?%{QUER Y_STRING} [L,R]


Any idea?
Bear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote