There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer blue screen boot bsod computer connection crash css dell display driver drivers email error ethernet excel firefox firefox 3 game hard drive hardware internet internet explorer itunes laptop linux malware monitor network networking outlook outlook 2003 outlook express partition password printer problem problems ram router slow sound trojan usb video virus vista windows windows xp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Encrypted Video


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
mrtechnique's Avatar
Computer Specs
Member with 97 posts.
 
Join Date: Jan 2007
Experience: Intermediate
27-Sep-2007, 02:54 PM #1
Encrypted Video
How would I be able to encrypt a video to where it can only be viewed when somebody purchases it. They also couldn't be able to save the video on their media player (i.e. Windows Media, Real Player). If anyone can help me with this, it would be greatly appreciated.
Anthony:-P's Avatar
Computer Specs
Senior Member with 451 posts.
 
Join Date: Nov 2006
Location: UK
Experience: Between Intermediate and
03-Oct-2007, 05:28 AM #2
Hi,

This is, in essence, fairly easy.

Ok so, if you wish for them to download the file.

You have two files. The first being a script, which will query the database and check whether the user has purchased that file. If they have, the script will then continue to allow them to download it.

{ will post code for that when i get home, if you need it }

All you then need to do, is rename the script file to the file extension of your choice, i.e .xyz adn then name the .zip file to .php.

Then add an apache handler in cpanel as follows:

handler: application/x-httpd-php
Extension: .zip

Then that should do that.

If you want them to view the file online, with no download, then you could:

Have a dynamic page for viewing the videos watch-video.php?vid={id of video}

which gets the information from the database. So for now, lets have id and location within the database.

Id will be usesd to identify it, and then location would be the filename (ie. omg_amazing_video.avi) without the directory, and then when you echo it from the database, simply append /videos/ (or whatever your directory location is) before the filename.

Then, all you do, is query the database to see if the user has paid for it. If they have then show them it, if now error, or give them a redirect somewhere.

One last thing you could do is turn on hot link protection, and add the extension .avi (and any others you use)

Hope this helps, any problems feel free to reply/contact me :-)

Regards,
Anthony
__________________
Currently training at geekstogo!
If your thread is solved, please mark as solved from the 'Thread Tools' menu.
My computer beat me at chess, however it was no match for me at kick boxing!
mrtechnique's Avatar
Computer Specs
Member with 97 posts.
 
Join Date: Jan 2007
Experience: Intermediate
03-Oct-2007, 04:59 PM #3
Anthony,

Thanks for the response. I definitely could use some help on this subject. I've seen some websites where I purchased a video for viewing and viewed in Windows Media Player and I've tried to save the video but the Save and Save As functions where greyed out. I've done some server side coding with PHP and MySQL, but nothing this extensive.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 04:09 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.