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:

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

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!
Who is Participating?

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

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

I appreciate your help.
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.