Submit details to view asset via URL


(Mitch Kerry) #1

Hi all

 

Is there a way I can intercept a user accessing an asset via its URL and present a form to grab some user details?

Essentially I have PDFs that I want to put some access restrictions around, but not have to log in.

 

Appreciate any help.

 

Mitch


(Joel Porgand) #2

Don't list the url directly, use the url of your form & pass through the assetid of the pdf in the query string.

 

On the thankyou page of the form redirect to the asset or render the url to the pdf using the passed through assetid. 


(Mitch Kerry) #3

Thanks

I guess this is the best way.

I just want to stop users accessing the asset by sharing the URL of the pdf.

So when they hit the URL they are blocked and presented with the form.


(Nic Hubbard) #4

Thanks

I guess this is the best way.

I just want to stop users accessing the asset by sharing the URL of the pdf.

So when they hit the URL they are blocked and presented with the form.

 

 

I have done with before. We had an asset listing that listed the PDF files. I used the base64 keyword to encode the URL. Then, if the user agreed to the agreement, I would use javascript to decode it and then present that to the user. If they were smart enough they could figure out the URL, but probably 99% of our users would have no clue.


(Mitch Kerry) #5

Thank Nic

I'll give that a run