Block Real Player with Apache

Hi Experts,

I was hoping to block Real Player on a website with video (or at least protect a directory holding the video files). I found an article here: http://www.longtailvideo.com/support/blog/13088/securing-your-content

Someone put in a comment that you can block Real Player with Apache. They provided this code:

SetEnvIfNoCase User-Agent "^RealPlayer" bad_client

<Directory "/your/streaming/files/*">
Order allow,deny
Allow from All
Deny from env=bad_client
</Directory>

I have, what is probably, a silly question. Where would I put this script? I thought it would be in my .htaccess file, but that produced a 500 error. Am I missing something really stupid here?

I'd appreciate your thoughts!
azlumiereAsked:
Who is Participating?
 
arober11Commented:
Hi

Your .htaccess snippet will only function if the mod_setenvif module has been loaded in the httpd.conf.
0
 
azlumiereAuthor Commented:
arober11,

Thank you so much for the information! I'll see what I can do.

I appreciate your help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.