Streaming live at 10am (PST)

How to create referring URL and limit access to visitors

Hello all:

I only want my site to be accessible from particular short links (if a visitor hasn’t come through this link they should not have access). There is no membership involved.

How would I do this?

Full context…

I distribute a link to my site to market researchers conducting surveys and my site should only be accessed through these links.



Here is my site Read-Only: LINK
(how to share your site Read-Only link)

This is hard, since it would require some server side code to get to work correctly and securely.

You could use a little Javascript script like this:

if (document.referrer !== '') {
	location.href = '/';

and it would redirect the user if they aren’t coming from the allowed link, but there would be countless of ways to still access the page if you really wanted to (disabling Javascript in the browser etc.).