[TYPO3] Conditional page rendering

Darko Jr. Gonzalez jkokino at gmail.com
Wed Oct 24 11:59:56 CEST 2007


heya

I want to limit access a specific page (FE-view) based on the user's IP
address. I use Templavoila. If the user's IP address is not matched then I
want to show a blank page or redirect to the rootpage.
I can set a condition:
[globalVar = TSFE:id = 10][globalString = IENV:REMOTE_ADDR = A.B.C.D]
...
[global]

or

[globalVar = TSFE:id = 10][IP = 192.168.1.34]

[global]

I am not sure whether one approach is better than the other.
I can use either condition to show the page? How do I display blank page if
the IP address is not matched?

The point is I want to limit access to a specific page without creating
fe-users, without "passage" extension. I want to silently to block/limit
access on the server side.

The ideal is: if the client's/user's IP address is not matched then it
is redirected to the homepage. Can someone give me an example to achieve
this?


Thanks


Darko


More information about the TYPO3-english mailing list