Block someone from accessing custom thank you URL directly?

  • JTMK01
    Asked on December 1, 2021 at 1:40 AM

    Can you teach me how can i do this using jotform. To block someone from accessing custom thank you URL directly. Is it possible to do it.?

    Regards.

  • John Support Team Lead
    Replied on December 1, 2021 at 3:32 AM

    You can redirect the user depending on their form responses using this method: https://www.jotform.com/help/317-change-thank-you-page-url-based-on-a-condition/

    So for example, you want a user that responded A to a field, redirect them to a custom Thank You URL, otherwise, he'll be redirected to the form's default Thank You Page.

    Now, if you're referring to something else, it would be great if you can provide an example scenario so we can provide a more specific solution you can use.

  • JTMK01
    Replied on December 1, 2021 at 3:44 AM

    Hi.

    Thanks for the feedback.

    I've done that.

    My scenario is I don't want the user be able to copy the redirect URL and access the redirect URL directly. I would like the URL being block if the user try to access the redirect URL directly. The redirect URL can only be access if the user being redirect to it.


    I found this in your forum can you show me how this was done.

    And change your custom redirect.

    Here's a demo: https://form.jotform.com/203303840100031.

    If you submit the form, you'll be redirected to https://shots.jotform.com/welvin/html/thanks1.php. If you access this custom thank you URL without submitting the form, you'll be redirected here https://shots.jotform.com/welvin/html/thanks1.html.

  • Nina_J
    Replied on December 1, 2021 at 4:46 AM

    Hello @JTMK01,

    I tested your demo form and I was routed to the thank you page. This is what you meant here "If you submit the form, you'll be redirected to https://shots.jotform.com/welvin/html/thanks1.php."

    "If you access this custom thank you URL without submitting the form, you'll be redirected here https://shots.jotform.com/welvin/html/thanks1.html."

    They will only get to see the custom URL if they finish filling out and submitting your form. I would suggest also that you make the fields "required" so they don't have the option to skip any fields.

    I apologize if I misunderstood the second part. Additionally, could you please share with us the Form URL you are referring to?

  • JTMK01
    Replied on December 2, 2021 at 12:06 AM

    Hi again,

    That not my demo form, that others demo which I found in jotform forum.

    I want to know how can I do this step in my jotform currently I'm using the card form. "If you access this custom thank you URL without submitting the form, you'll be redirected here https://shots.jotform.com/welvin/html/thanks1.html."

    This is my sample project:

    I will be sending user with this 1st link https://form.jotform.com/213344493955059 for user to fill in and submit than they will be redirect to the 2nd url https://form.jotform.com/213344175982056

    My problem now is how can I prevent/block user from directly accessing the 2nd url. (I don’t want the user to copy and paste the 2nd url and browse it without go through the 1st url)


  • Laura JotForm Support
    Replied on December 2, 2021 at 2:51 AM

    Hi,

    Unfortunately, there is no way to directly block the user from accessing the URL.

    A workaround you could do, is to create a hidden field on form 1, and pass the value from this field to form 2. The field will act as a checker, and if this field is filled, you will show the questions on the second form.

    If the field is not populated, it means the user accessed the form 2 directly, and then the questions are hidden. You can create a condition like this with conditional logic.
    Guide: How-to-automatically-pass-form-data-to-another-form
    How-to-show-or-hide-fields-base-on-users-answer

    Let us know if you have further questions.