How to prevent direct access to forms

prevent direct URL access to a CF form.

Overview

The form is accessible via direct URL even when assigned to a menu restricted to registered users.
Add the Authenticator action to the On Load event and a Redirect action to the On Fail event to restrict access to specific user groups.

Answered
si sinivasan 30 May, 2015
Hi,

Is there any way to prevent direct access to my forms via link like ...index.php?option=com_chronoforms5&chronoform=TestForm

Thanks
Gr GreyHead 30 May, 2015
Hi sinivasan,

What's the problem that you need to solve exactly?

Do you want to block people from the form? Or just use a prettier URL? Or something else?

Bob
si sinivasan 31 May, 2015
Thanks Bob,

I have made form with name "TestForm" and assigned to a menu, which only can be access by registered users. that works fine.

but still the form is accessible by any user using the link (http://localhost/epm/index.php?option=com_chronoforms5&chronoform=TestForm)

what I exactly need is the form should be accessible registered users only and should not be accessible others.

-Sini
Gr GreyHead 31 May, 2015
Answer
1 Likes
Hi Sini,

You can use the Authenticator action from the Security actions group to limit access to specific group or groups. You need to add a ReDirect action to the pink On Fail event to send guests somewhere else. The Authenticator action should be the first action in the form On Load event.

Bob
This topic is locked and no more replies can be posted.