Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Design Forum > Web Design & Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Web Design & Programming Discussion of web design, and server-side & client-side scripting

Reply
 
LinkBack Thread Tools
Old 09-21-2006, 02:32 PM   #1 (permalink)
TSF Enthusiast
 
KoosHopeloos's Avatar
 
Join Date: Nov 2004
Posts: 555
OS: Windows XP Pro & Windows Vista Ultimate browsing the web with FF, Opera, Safari and IE.


Problem with deep-linking from my site...

L.S.,

I have a movie on my site which I would like to 'protect' from deeplinking. All my webpages/movies are in separate folders, except my index page. So my question is the following: how do I let someone automatically go to the index-page when they try to get to a sub-webpage (with the movie) directly?

Is it possible to do a domain-check? So that they can only reach the moviepage (for example) when they acces the page from my index-page.

I.o.w. what is the best solution to this?

In a way making sure that my bandwidth is saved for the people that visit my site and not only for those that only wish to see the movie?

I hope you can help me,

KoosHopeloos :)
KoosHopeloos is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 09-22-2006, 01:03 PM   #2 (permalink)
Design Team
 
DJ-Zep's Avatar
 
Join Date: Mar 2006
Location: Philadelphia
Posts: 1,541
OS: Windows Vista Home Premium (x64)

My System

Does your server have cPanel X on it? If so, login and look for hotlink protection. Add whatever format your video is in (.MPEG, .AVI, .WMV, etc.) and you'll be set!
__________________
Nice music blog

Nvu || Notepad++ || Apache || PHP || Keep TSF Alive

"The great thing about a computer notebook is that no matter how much you stuff into it, it doesn't get bigger or heavier."
DJ-Zep is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-25-2006, 01:51 AM   #3 (permalink)
TSF Enthusiast
 
KoosHopeloos's Avatar
 
Join Date: Nov 2004
Posts: 555
OS: Windows XP Pro & Windows Vista Ultimate browsing the web with FF, Opera, Safari and IE.


@ DJ-Zep: thanks for the suggestion.

Nope, no cPanel X to be found :(. Any other(, more difficult) suggestions?

KoosHopeloos
KoosHopeloos is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-25-2006, 06:03 PM   #4 (permalink)
Design Team
 
DJ-Zep's Avatar
 
Join Date: Mar 2006
Location: Philadelphia
Posts: 1,541
OS: Windows Vista Home Premium (x64)

My System

Getting to .htaccess
Use an FTP client to access your site (I recommend CoreFTP). Go into your site's main directory (the main folder) and look for a file named ".htaccess". When you find it, open it in your main editor (notepad if you have no other program).

Download
DOWNLOAD IT TO YOUR COMPUTER WHERE YOU WILL REMEMBER IT. Do NOT edit this file. Backing up files is very important when dealing with important files.

Editing .htaccess
Add this to the bottom of the file:
HTML Code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://www.YOURDOMAINHERE.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://YOURDOMAINHERE.com$      [NC]
RewriteRule .*\.(wmv|avi|mpg|mpeg)$ - [F,NC]
(Replace "YOURDOMAINHERE" with your domain name)

Upload your edited file

After you add that, upload your new .htaccess to your site (you may be prompted in CoreFTP, just click "Overwrite").

***PLEASE*** be careful when editing this file. This file is the main configuration for your website. Do not delete, edit, or in any way change anything within this file unless directed to. Any questions, just reply.
__________________
Nice music blog

Nvu || Notepad++ || Apache || PHP || Keep TSF Alive

"The great thing about a computer notebook is that no matter how much you stuff into it, it doesn't get bigger or heavier."
DJ-Zep is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-06-2006, 07:48 AM   #5 (permalink)
TSF Enthusiast
 
KoosHopeloos's Avatar
 
Join Date: Nov 2004
Posts: 555
OS: Windows XP Pro & Windows Vista Ultimate browsing the web with FF, Opera, Safari and IE.


@ DJ-Zep: thanks for the help, havn't been able to test your suggestion yet, but I'm gonna try this weekend.

I do have a question though. It seems that not only my movie is hotlinked, also some of the image I have on my site. Can I add '|gif|jpg' to:

Quote:
Originally Posted by DJ-Zep View Post
[b][u][color="DarkOrchid"]
RewriteRule .*\.(wmv|avi|mpg|mpeg)$ - [F,NC]
Again, thanks for the help...

KoosHopeloos
KoosHopeloos is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-06-2006, 02:27 PM   #6 (permalink)
Design Team
 
DJ-Zep's Avatar
 
Join Date: Mar 2006
Location: Philadelphia
Posts: 1,541
OS: Windows Vista Home Premium (x64)

My System

Yup. To add them, use this code in .htaccess:

HTML Code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://www.YOURDOMAINHERE.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://YOURDOMAINHERE.com$      [NC]
RewriteRule .*\.(wmv|avi|mpg|mpeg|jpg|gif|png|gif)$ - [F,NC]
Tell me how things work out!
__________________
Nice music blog

Nvu || Notepad++ || Apache || PHP || Keep TSF Alive

"The great thing about a computer notebook is that no matter how much you stuff into it, it doesn't get bigger or heavier."
DJ-Zep is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 12-13-2006, 02:41 PM   #7 (permalink)
TSF Enthusiast
 
KoosHopeloos's Avatar
 
Join Date: Nov 2004
Posts: 555
OS: Windows XP Pro & Windows Vista Ultimate browsing the web with FF, Opera, Safari and IE.


There is one problem though: is this code also working on Sun-Cobalt servers, I thought it can only be used on Apache-severs?

I do have a .htaccess-file though, but it is not in the main root of the website-space.
__________________
KoosHopeloos, straight to you from .nl via the world wide web!

KoosHopeloos is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

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




All times are GMT -7. The time now is 05:03 PM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85