PDA

View Full Version : Another .htaccess question


Ogmuk
Tue 26th Aug '03, 9:00pm
Is it possible to make .htaccess check for the user's cookied information, and if it's a specific user, forward him/her to a certain page? It would be another way to annoy those banned. I know about the .htaccess guides out there but it's still all very vague to me ;)

Ogmuk
Tue 26th Aug '03, 10:17pm
RewriteEngine on
RewriteCond %{HTTP_COOKIE} ^.*bbuserid=23.*$
RewriteRule .*$ http://www.somekindofnastywebsitehere.com/

Paste the banned user's ID in there (instead of 23) and he could be quite annoyed.

eva2000
Wed 27th Aug '03, 1:18am
RewriteEngine on
RewriteCond %{HTTP_COOKIE} ^.*bbuserid=23.*$
RewriteRule .*$ http://www.somekindofnastywebsitehere.com/

Paste the banned user's ID in there (instead of 23) and he could be quite annoyed.
wow that works ? interesting approach

OTuRaNBoGHa
Mon 20th Sep '04, 6:28am
how can i write the codes in .htaccess to make people in a specific group be redirected to a specific web-page? and where can i find the whole commands available via .htaccess?

also i want to know where i can get the cookie info like the one above?

Floris
Mon 20th Sep '04, 7:22am
wow that works ? interesting approach
Interesting yes, but easy to bypass by just removing the cookie from the HD.