Gossamer Forum
Home : General : Perl Programming :

Protecting Graphical Content...

Quote Reply
Protecting Graphical Content...
I'd like to use .htaccess to protect a folder on my forum, this folder will contain copyright protected artwork to be available to moderators only...

Is it possible to push a username and password into the http header?... a little like using...

Code:
http://username:password@www.domain.com/

but I'd rather that the username/password combination not appear in the html or url...


moog
-- I've spent most of my money on beer and women... the rest I just wasted.
Quote Reply
Bump... In reply to
Merry Christmas...


moog
-- I've spent most of my money on beer and women... the rest I just wasted.
Quote Reply
Re: [moog] Protecting Graphical Content... In reply to
Hi moog,

I don't know if this is approachable.

In the approximate template, just use

<img src="myimage.cgi?file=thisimage.gif">

and in the myimage.cgi scirpt

if($USER->{type} eq 'moderator'){

'read that image file and print it out

}else{

print 'a transparent image'

}

Cheers,

Cheers,

Dat

Programming and creating plugins and templates
Blog