I put my videos on my Shared web host and user can direct download all files. but I want to hide my actual file paths and make time-limited download links. if files were on same server it is work fine. when I use this code :
return response()->download('/home2/alihoss1/domains/alihossein.ir/public_html/dl/video/MySql/Sql1.mp4');
i see this error :
is_file(): open_basedir restriction in effect. File(/home2/alihoss1/domains/alihossein.ir/public_html/dl/video/MySql/Sql1.mp4) is not within the allowed path(s): (/home2/alihosse/domains/alihossein.ir/:/tmp/:/usr/local/php-7.0/lib/php/)
What solution would you recommend ؟ videos and laravel Project are not same host.