I have a server that is hosting videos. Since I only have a 10mbps line and around 150 users on all the time, I have to keep those who get the directory name and filename of my videos from embedding them onto their sites and using up my bandwidth. .htaccess will not work becuase microsoft windows media player gets around that. Trust me I have tried doing .htaccess in every way possible.
The only way I thought of doing it is by using a cron job on the server where it would:
-Change the folder that the videos are in to a random number and then rename that folder.
-It would also go into the sql database and run one query which will update a field to the new name from above.
-I would like to run the cron job like every 2 hours.
This way if a user embeds the video onto their site it can only work for a max of 2 hrs before the folder is renamed and the video won't play for them!
Would anyone know the code to do this?
Thank in advance,
Mark