I have an old system in classic ASP and need to do some implementations. I have a web.config
file for this application and would like to know if it is possible to block direct access to a video URL.
For example: If the user has access to the url of the video and paste in the address bar would like to block or redirect. But if a specific page of the system is using this URL it should be able to access without restrictions.
I've tried something like:
<rule name="assets">
<match url="^assets/videos/([a-z0-9-]*)" />
<action type="Rewrite" url="erro.asp" />
</rule>
So it is possible to block direct access via url. But it also blocks loading of the video on the other pages of the application.