NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
mod_rewrite (Score:2)
Security through obscurity isn't. Always check user input in your CGI script, even if you're using mod_rewrite.
On a less negative note, here's a fun bit of rewrite to map a subdomain to a subdirectory. It would need to be changed if your filesystem/server is not case sensitive (Mac folks serving from HFS+, Windows folks, etc). Actually, it should be doing case-insensitive checks on domain names in either case. I'll leave that as an excersize for anyone who cares (translation = my bad, too lazy to fix it right now). This could be handy for folks with wildcard DNS entries who want to start making use of that namespace.You could do fancier things with this. I think some one already patented using a subdomain as a session ID though. Nice way to keep an ID with a session without having to re-write any links.
-matt
Reply to This
Re:mod_rewrite (Score:1)
I must first admit that while I'm proudly at least somewhat of a geek, I'm a perl-idiot. I know enough to upload my perl cgi scripts with the right permission, and that's about it. And as far as
That said, I humbly ask for your kind help.
I run the site smilezone.com, and I just started up a blog at blog.smilezone.com. Everything's been relatively hunky dory since I discovered and implemented this in my