Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Any way to hide the path?
Old 08-18-2009, 06:25 PM Any way to hide the path?
Extreme Talker

Posts: 218
Trades: 0
I'm using a popular php video-sharing script for my web site.
I've modded it so vistors must pay to view a video, however the path to the thumbnail appears on the html page in the View Source code, which is very similar to the path to the actual video. Is there any way to hide the path code?
chrisj is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-18-2009, 07:03 PM Re: Any way to hide the path?
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Probably not without rewriting several parts of the script, no...
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 08-19-2009, 08:42 PM Re: Any way to hide the path?
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
Since the browser has to load the video, the only way to hide it is to hide it from the browser. You can base the display of the video off of session variables (or whatever else you choose) to make it harder for people to share the URL, however.
__________________
Jeremy Miller

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Old 08-19-2009, 09:20 PM Re: Any way to hide the path?
rkuwadia's Avatar
Average Talker

Posts: 14
Name: Ravi Kuwadia
Trades: 0
There are ways to hide the video url from appearing but smart people who understand html can still get it.

If you really want to hide it then best is to password protect it. I have seen some sites do this. May be you can search google how to do this.

If you dont care about select few who are good at html then you can try to play video through javascript file. That will make it difficult for average user to get the url. You can google this and see how to do it.
__________________
Ravi Kuwadia -
Please login or register to view this content. Registration is FREE
rkuwadia is offline
Reply With Quote
View Public Profile
 
Old 08-20-2009, 05:34 AM Re: Any way to hide the path?
lizciz's Avatar
Super Spam Talker

Posts: 807
Name: Mattias Nordahl
Location: Sweden
Trades: 0
I dont know how it is with video files. But with image files at least, you can have php serve the contents of an image file to the page with the correct mime type (basically printing out the mime header and then the file contents). That means when you view the php file you'll actually see an image. That means you can have all your image paths in a database and instead of using the real path to the actual image in the <img> tag, you'd do something like this

PHP Code:
<img src="show_image.php?image_id=12345"
Then nobody will be able to see the actual paths unless they manage to get into your database. Using a mime type for video files instead, I'm guessing you could do the same thing for video files.
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
lizciz is offline
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Reply     « Reply to Any way to hide the path?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15736 seconds with 12 queries