logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

ANNOUNCE: CAP::LinkIntegrity 0.02: msg#00082

lang.perl.modules.cgi-appplication

Subject: ANNOUNCE: CAP::LinkIntegrity 0.02


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>
Google Custom Search

Recently Viewed:
krysalis.sandbo...    web.zope.zwiki/...    gnome.apps.gnum...    xfree86.newbie/...    editors.vim/200...    mozilla.enigmai...    boot-loaders.gr...    network.vnc.ult...    redhat.release....    java.geronimo.u...    os.netbsd.devel...    horde.wicked/20...    linux.lsb.discu...    ietf.ips/2005-0...    alsa.devel/2002...    user-groups.lin...    package-managem...    debian.devel.da...    security.cyrus....    video.gstreamer...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive 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

Navigation