What I’m basiclly trying to do is email out a link to someone so when they click on it, it takes them to a notes document on the web. All emailed links will use the same username/password (unless there is a way to script user creation in hosted orgination environment).
The problem is that the document should only be viewable by the person that the link was emailed to.
So my idea was to have a special(random) URL parameter in the link sent out. This URL parameter has to match what was set in the document trying to be opened.
I have been using WebQueryOpen, but saving documents in the agent called by this event doesn’t seem to work correctly and redirecting doesn’t seem to work at all.
I’m wondering if there is a different way of doing this. It has to be secure i.e. no javascript
Subject: Restricting access to document based on URL parameter
we do something very similar to this so that we restrict people from getting to the downloads without registering. The link from the registration page appends a parameter to the URL that must match some data when they open the download page. I’m not sure why the WebQuerySave does not work correctly. Can you capture the URL that is generated in the save process and see if some extraneous information has been incorporated in it.
Subject: RE: Restricting access to document based on URL parameter
Did you mean WebQueryOpen instead of WebQuerySave? As WebQuerySave isn’t called when the document is requested.
The problem I’m having is how to stop the document being opened if the URL parameters don’t match.
At the moment if I set a field on the document saying the document can be opened when the parameters match and then save it in the WebQueryOpen agent you have to refresh the document after its been opened. It seem that the save isn’t checked till the next time the document is refreshed.