here is my .htaccess file RewriteEngine on RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain\.in [NC] RewriteRule \.(flv|FLV|MP4|txt)$ /messageforcurious [L] Code (ApacheConf): its fully protect my all file . But when a user try to play video by mx or vlc mobile player it not played . If i remove .htaccess then working fine. Now how can i protect my file only from hotlinkng (any other domain) but working from any mobile apps like mx or vlc player .