I found an answer on stackoverflow that suggests denying all access to the folder to prevent direct access to it and its content. However they also suggested that php would have no problem accessing any files forbidden by the .HTACCESS file.
Now in a sense this ain't straight forward because it's taken me longer to get working and still isn't.
<?php
/*
* the folder channel is in html folder#
* the folder channel has its own .htaccess file with code like
* deny from all
*/
include("channel/150508084959b5b611e1dcf.mp4");
?>
now here i try to play a video from the forbidden folder expecting it to work because php included the file but i just get a server error in the console and in the apache.log file i get PHP Parse error: syntax error, unexpected '\xdf' (T_STRING)
<video src="channel/150508084959b5b611e1dcf.mp4" controls autoplay></video>
It might be that i either misunderstood the answer that was given or the the apache.log file but i really need help. Thanks in advance and any help is really appreciated.