![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| 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: * 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 |
|
|||||||
| Web Design & Programming Discussion of web design, and server-side & client-side scripting |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
TSF Enthusiast
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 :) |
|
|
|
| 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 |
|
|
#2 (permalink) |
|
Design Team
Join Date: Mar 2006
Location: Philadelphia
Posts: 1,541
OS: Windows Vista Home Premium (x64)
|
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." |
|
|
|
|
|
#4 (permalink) |
|
Design Team
Join Date: Mar 2006
Location: Philadelphia
Posts: 1,541
OS: Windows Vista Home Premium (x64)
|
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]
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." |
|
|
|
|
|
#5 (permalink) | |
|
TSF Enthusiast
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:
KoosHopeloos |
|
|
|
|
|
|
#6 (permalink) |
|
Design Team
Join Date: Mar 2006
Location: Philadelphia
Posts: 1,541
OS: Windows Vista Home Premium (x64)
|
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]
__________________
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." |
|
|
|
|
|
#7 (permalink) |
|
TSF Enthusiast
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! ![]() |
|
|
|
![]() |
| Thread Tools | |
|
|