Search Posts

Category: lumen

Restrict url from direct access from browser in lumen

I want to disallow user to access video from direct url using bowser <video src=”MYURL” type=”video/mp4″ ><track src=”” kind=”subtitles” srclang=”en” label=”English”></video> Above code is correct but if someone copy MYURL from inspect element in browser and try to access in new tab with direct MYURL i want to restrict them to do so. Technology Frontend : angularjs Backend : lumen (api) Source: AngularJS

Deny all but only allow access from Angularjs on the same server

I have a Lumen backend and an Angularjs project on the same server without a virtual host. The way I access APIs is simply by the URL like I want to hide these endpoints from the public but only allow access from the Angularjs. I tried adding this to the .htaccess in the api/public folder, Order deny,allow Deny from all Allow from But Angular will be denied as well. I access the endpoint […]