1,105,406 Community Members

Prevent access via entering url in address bar of web page

Member Avatar
kgizo
Junior Poster in Training
57 posts since Feb 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Hello

I've got a problem whereby I need to block access to my survey, I do not want a situation where a user can access the survey by just entering the URL of the survey, the survey has been integrated with mediawiki.

Thanks in advance
kgizo

Member Avatar
kgizo
Junior Poster in Training
57 posts since Feb 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Thats what I meant sorry.

Member Avatar
rajdevsohail
Newbie Poster
13 posts since Apr 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 3 [?]
Skill Endorsements: 0 [?]
 
0
 

It can be easily done .. For example , your web page address is www.example.com/index.php?survey=blahblah you can hash the value of blahblah by using

$survey = "Anything" ; $hashed_survey = md5($survey);

and then continue your document by replacing blahblah with $hashed_survey ..

Member Avatar
kgizo
Junior Poster in Training
57 posts since Feb 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

thanks rajdevsohail

I'll try it out just now

Member Avatar
almostbob
Nearly a Senior Poster
3,389 posts since Jan 2009
Reputation Points: 515 [?]
Q&As Helped to Solve: 425 [?]
Skill Endorsements: 14 [?]
 
0
 

any of an unlimited number of $session variables set in the page you wish to link from, search for in the page you wish to land on

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article