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...

Re: ANNOUNCE: CAP::LinkIntegrity 0.02: msg#00084

lang.perl.modules.cgi-appplication

Subject: Re: ANNOUNCE: CAP::LinkIntegrity 0.02


Thanks for the feedback, Michael!

> What would be really cool is if the plugin could automatically rewrite
> the links to be tamper proof for everything going out to the browser.
> This could be done using a call back at postrun time with some HTML
> parser. Of course this would be need to be turned on by the user (since
> it could potentially be pretty slow) both globally and per run mode, and
> then with the option of somehow disabling/enabling the tamper proof
> filtering at run time in the run mode itself.

Hmmm - that's an interesting idea. I'm usually too much of a control
freak to give the computer that much power, though.

> Or maybe there's a way to make this work from inside the template where
> the programmer can decide for which URL's it makes a difference. Should
> be pretty easy as a TT plugin, but might also work as H::T plugin with
> Mark's new system.

Yeah! I like this approach! And you can do this already if you use
Cees's technique of passing in the CGI::Application $self object into
the template params:

# in your run mode (AnyTemplate syntax)
$self->template->fill({'c' => $self);

# in your TT template:
<a href="[% c.make_link('/account.cgi?rm=balance&acct_id=73') %]">

# or in your HT::Dot template:
<a href="<TMPL_VAR c.make_link('/account.cgi?rm=balance&acct_id=73')>">

I'll add this technique to the docs when I get a chance.

> What does the invalid_checksum hook do? Or is it just a hook that you
> can inject stuff into if you need it?

Yeah, it's an open hook for you to do whatever you want, depending upon
how serious you feel the intrusion attempt is. In CAF, we delete the
user's session.


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