Check out the LimeSurvey source code on GitHub!

Hide the end url from users

More
3 years 10 months ago #94465 by Nathan86
Hi,

I do not know if there is an option that allows us to hide the end url from users. I want to collect the survey result with a script (located at the end url), but I do not want the user to see the url in the address bar of their browsers.

Is there a way to forward the end url instead of redirecting or have a separate url that does the job?

Please Log in to join the conversation.

More
3 years 10 months ago #94466 by Ben_V
Nathan,
This previous post may answer your question...

Another way is to embed your url into an iframe (in the survey completed screen).

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The following user(s) said Thank You: Nathan86

Please Log in to join the conversation.

More
3 years 10 months ago #94468 by Nathan86
Hi Ben_V, thanks so much. I will try this later.

Please Log in to join the conversation.

More
3 years 10 months ago #94552 by Nathan86
Hi Ben_V,

I realize either iframe or ajax is client technology, so technically users can still find out the url to the script that collect the survey result. Moreover, they are able to find out any data I pass to the script, which could result in a security issue in my case. Do you know a server side solution that could achieve my requirement? Thanks so much.

Please Log in to join the conversation.

More
3 years 10 months ago #94556 by Ben_V
If you use AJAX to call some PHP functions the end user won't see the code (only html prints if present). In addition, you can prevent your file from being called directly. (It's more secure than only keeping urls secret.)

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)

Please Log in to join the conversation.

More
3 years 10 months ago #94557 by Nathan86
Hi Ben_v,

Can you give more details? I am new to web development. As I understand, users are able to see the javascript code, and thus they are able to see the php file (which is the URL) that is called by the AJAX code.

What do you mean by "use AJAX to call some PHP functions"? I think javascript code is executed by the client browser. How is it possible to call PHP functions?

Can you give me more details on "prevent file from being called directly"? I really do not know how to do it.

Thank you.

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form