homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
Forum Library, Charter, Moderators: coopster & jatar k & phranque

Perl Server Side CGI Scripting Forum

Perl and web site security
Looking for alternative to apache .htpasswd

 12:06 am on Dec 14, 2005 (gmt 0)

My web sites rely on apache's .htpasswd files to restrict access to protected pages. I'm rewriting my pages and need a security solution that can be implemented in perl. Can anybody recemmend a place where I can read up on implementing security in the perl/CGI scripts?

My web pages use SSI to call perl scripts which generate dynamic data in certian areas of the page. I need to be able to include security mechanisms into the perl scripts so I don't accidenty allow a non-authorized user to get protected information.

Just looking for some examples of perl-based login routines and how to track the session etc.



 12:27 am on Dec 14, 2005 (gmt 0)

Check CPAN. There are many modules that handle this type of thing.

Myself, I rolled my own user authentication object that encapsulates sessions, cookies, userids, database access, etc. It's built upon several available CPAN modules. Then I simply call it wherever I want pages to be password protected.


 4:15 am on Dec 20, 2005 (gmt 0)

I'd recommend sticking with .htpasswd type authentication if you can. It's far more robust and comprehensive. Tied in with a database-backed auth mechanism, you should be able to do everything a script-driven authentication mechanism would (session expiries etc) and more. Just my 2 seconds' worth...

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved