Problems, need help? Have a tip or advice? Post it here.
5 posts Page 1 of 1
Hi,

I'm running an internal site where links to blog posts will be sent out via email. We don't want these posts accessible by the public.

Is it possible to log in via url parameters? So the link we send out includes a username and password allowing the user to view the post without having to manually log in?

e.g. http://example.com/index.php?un=username&pw=password
Hi,

Normally when we say 'internal site', the underlying assumption is that the site is running on an internal network i.e. which is not directly accessible from the Internet e.g. a LAN within an office. I suppose in your post you actually meant a 'private site' instead i.e. a site which is located on the Internet but is not meant to be accessed by everybody. Is that correct?

If so, then the links going out through the emails would be to blog posts belonging to this private site and you wish to somehow restrict access to these pages using some URL parameters (username/password in your solution).

If that is correct, can you please let me know if suppose you send a link of one particular post to, say, ten people then whether the username/password parameters in the URL will be different (unique) for each of the ten persons or just a single value would do for all?

I ask this because, I think, instead of the username/password we can use a single random token with the URL and mail it to the users. The page would display only if that token is present in the URL accessing it (and, hopefully, this could be done only by the people who received the emails).

Please let me know.
Hi KK,

Yes, it is a private site and it would just be the same link for 10 users. So the private token for each page would work!

Please advise how I would do this.


Thanks
Could you give me a couple of days please?
I'll try to fix up an addon for you.

Thanks.
Thank you KK! :)

In the mean time I am using a global page to store global variables, and have a variable for a token which has been set to a string of characters.

On the blog page I am using the cms:gpc tag to get the token variable in the URL.
5 posts Page 1 of 1