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
its working fine
but the problem is when i am trying to upload a video i am geting this error
video is uploading successfully and i am able to play it but showing this error.
can anyone fix this code and update please

this is my apache error log

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