This is a Script for Preventing IDM to download videos from cumulusclips

edited December 2015 in Bugs and Errors
Hi all :)
i found this script here https://github.com/wp-plugins/defa-protector-protect-html5-video-from-download-for-free-opensource
its working fine
http://i.imgur.com/OA168Db.png
but the problem is when i am trying to upload a video i am geting this error
http://i.imgur.com/6KaJmxO.png
video is uploading successfully and i am able to play it but showing this error.
can anyone fix this code and update please
thanks

this is my apache error log

PHP Notice: Undefined index: Location [Fri Dec 18 20:00:46.779165 2015] [fcgid:warn] [pid 25197] [client 192.168.1.2:49481] mod_fcgid: stderr: PHP Notice: Undefined index: Location in /home/cc/public_html/defavid.php on line 14, referer: http://cc.in/videos/25/video/
This discussion has been closed.