|
|
Choosing A Webhost: |
ANNOUNCE: CAP::LinkIntegrity 0.02: msg#00082lang.perl.modules.cgi-appplication
CGI::Application::Plugin::LinkIntegrity should be available soon on a CPAN mirror near you: http://search.cpan.org/dist/CGI-Application-Plugin-LinkIntegrity-0.02/ Thank you to the cgiapp list for all your help answering my questions about QUERY_STRINGs and whatnot. Thanks especially to Richard Dice. This module is based on a feature from CAF that he wrote. CAP::LinkIntegrity is a plugin that makes it easy to create tamper-resistant URLs in your application. Basically, it adds a crytpographic checksum to each link you generate: my $link = $self->make_link("/account.cgi?rm=balance&acct_id=73"); print $link; # /account.cgi?rm=balance&acct_id=73&_checksum=1d7c4b82d075785de04fa6b98b572691 If the user attempts to change part of the URL (e.g. a query string parameter, or the PATH_INFO), then the checksum will not match. The run mode will be changed to link_tampered, and the invalid_checksum hook will be called. You can define the 'link_tampered' run mode yourself, or you can use the default 'link_tampered' run mode built into 'CGI::Application::Plugin::LinkIntegrity'. You can disable link checking during development by passing a flag at configuration time. You can choose the module you want to use to generate the checksum (e.g. Digest::MD5 or Digest::SHA1), or you can create your own subroutine to do the work. Michael --- Michael Graham <magog@xxxxxxxxxxxx> --------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/cgiapp@xxxxxxxxxxxxxxxxx/ http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2 To unsubscribe, e-mail: cgiapp-unsubscribe@xxxxxxxxxxxxxxxxx For additional commands, e-mail: cgiapp-help@xxxxxxxxxxxxxxxxx
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Restrict access to certain run modes, Steve Comrie |
|---|---|
| Next by Date: | Re: ANNOUNCE: CAP::LinkIntegrity 0.02, Michael Peters |
| Previous by Thread: | ANNOUNCE: AnyTemplate 0.10, Michael Graham |
| Next by Thread: | Re: ANNOUNCE: CAP::LinkIntegrity 0.02, Michael Peters |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |