[TYPO3] password protect a single page?

Tyler Kraft headhunterxiii at yahoo.ca
Fri Feb 2 17:50:36 CET 2007


mmmm what about this

On a higher up page a form that asks for a code, that you then send to a 
page as part of a get or post (say entrycode=XXX). just a hand coded 
simple html form.

Then  create atemplate on teh protected page, and in it some conditional 
[globalVar = GP:entrycode = 627] that lets them see the page.

If they don't have the right code, and therefore the right get string 
the template invokes

[globalVar = GP:entrycode = 627]

[else]
	config.additionalHeaders = Location: 
http://default.netefficiency.co.uk/index.php?id=1
[global]

would that work for you?





Bing Du wrote:
>> Hi,
>>
>> Typo3 V4.0.4.
>>
>> We use single sign on here.  People within our organization are
>> authenticated somewhere else and redirect back if authentication succeeds.
>>  One customer now requests to protect one of their pages using some code,
>> username is not necessary.  The page is hidden in menu in the page tree..
>> The page should be visible to those around the world who know the code.
>> Personally, I don't think adding code would do any good in protecting the
>> page.  But I can create a new page that maybe just has a form asking
>> people to enter code, then write up some PHP code to show  the page if the
>> code matches or reject if the code doesn't match.  How do other people
>> handle such kind of situations?  Any better ideas?
>>
>> Thanks in advance,
>>
>> Bing
> 
> Even though we use single sign on, seems like we can still use newloginbox
> to deal with this situation.
> 
> Bing


More information about the TYPO3-english mailing list