configure only allow specific domains to access certain folders using .htaccess
snippet in htaccess

configure only allow specific domains to access certain folders using .htaccess

user9255

Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase /files/videos/

# if it is not for domain video.mywebsite.com then block it
RewriteCond %{HTTP_HOST} !^video\.mywebsite\.com$ [NC]
RewriteRule ^ - [F]