a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Hosting from $3.99 per month!

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions. dd

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Preventing Hotlinking

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> Preventing Hotlinking
Page: [1]
 
Xenon

 

Posts: 44
Joined: 12/8/2003
From: Madrid, Spain
Status: offline

 
Preventing Hotlinking - 12/8/2004 14:12:22   
How can you prevent Hotlinking (typing out the adress of an HTML file and accessing it)???? I have heard a method using .HTACCESS by looking on other forums but it didn't work. Is there another method without using Perl or other complicated languages???

_____________________________

.:JAva Terminal:. Webmaster
Spooky

 

Posts: 26617
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Preventing Hotlinking - 12/8/2004 14:13:22   
WIndows or Unix Platform?
What did you try that didnt work?

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to Xenon)
Xenon

 

Posts: 44
Joined: 12/8/2003
From: Madrid, Spain
Status: offline

 
RE: Preventing Hotlinking - 12/8/2004 14:52:09   
Windows. I tried the {HTTP_REFERER} thing in the .HTACCESS file.

_____________________________

.:JAva Terminal:. Webmaster

(in reply to Spooky)
Giomanach

 

Posts: 6136
Joined: 11/19/2003
From: England
Status: offline

 
RE: Preventing Hotlinking - 12/8/2004 15:10:44   
http://www.htmlbasix.com/disablehotlinking.shtml

try that



_____________________________




(in reply to Xenon)
Xenon

 

Posts: 44
Joined: 12/8/2003
From: Madrid, Spain
Status: offline

 
RE: Preventing Hotlinking - 12/9/2004 8:23:22   
Thanks. This is more or less what I wanted but I want to disable the hotlinking of webpages (.HTM files), not images. So will the intructions on the webpage that you put there, apply for HTM files aswell as images files??? Many thanks!

_____________________________

.:JAva Terminal:. Webmaster

(in reply to Giomanach)
Kitka

 

Posts: 2520
Joined: 1/31/2002
From: Australia
Status: offline

 
RE: Preventing Hotlinking - 12/9/2004 8:45:37   
Hotlinking of html files is most unusual. Would you give us an instance of what you mean (how it is being done)?

_____________________________

Kitka
**It is impossible to make anything foolproof because fools are so ingenious.**


(in reply to Xenon)
Xenon

 

Posts: 44
Joined: 12/8/2003
From: Madrid, Spain
Status: offline

 
RE: Preventing Hotlinking - 12/9/2004 17:17:05   
Lets see:

On my webpage I have a simple Java Applet Login. So when the user is redirected to the correct page (after putting in the correct login and password) I don't want the user to:
-see the web adress of where he is taken
-the history to record the web adress of where he is taken
-be able to write in the web adress of the HTML file of where he is taken

Basicly, I want the user to go through the Java Applet to Login and then redirected to his/her page.

Thanks for help.

_____________________________

.:JAva Terminal:. Webmaster

(in reply to Kitka)
Kitka

 

Posts: 2520
Joined: 1/31/2002
From: Australia
Status: offline

 
RE: Preventing Hotlinking - 12/10/2004 1:44:53   
Ok - what you are wanting is not related to "Hotlinking". As best as I can describe it, Hotlinking is stealing someone elses bandwidth. Say you have a picture called Mycat.jpg on your server, which is called Server A. But someone on Server B wishes to display that image on their page about cats called cats.htm (which resides on Server B). They "hotlink" to the image on Server A by using the full absolute path on the page, and they get the image displayed on their page when a visitors browser requests it from Server A, without using any of their own bandwidth or server disk space. Also, they get the visitor on their site/page, who has no knowledge that the picture actually belongs to you or your page.

The problem that you describe now is one you have raised previously here and some people have suggested solutions.

As I see it (and I am no expert) simple Javascripts are close to useless for keeping people out of password protected pages. They can be cracked easily, and also bypassed easily, simply by turning off Javascript in the browser. If you are serious at wanting to protect a page or folder, then I would suggest using .htaccess files to do it. Instructions here.

Good luck.

_____________________________

Kitka
**It is impossible to make anything foolproof because fools are so ingenious.**


(in reply to Xenon)
Kitka

 

Posts: 2520
Joined: 1/31/2002
From: Australia
Status: offline

 
RE: Preventing Hotlinking - 12/10/2004 2:16:15   
More:

-see the web adress of where he is taken

I don't think that is possible unless you use chromeless popups. But why do you wish to hide the address?

-the history to record the web adress of where he is taken

I think you can control caching by placing meta tags on the destination page. eg:

<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">

... but I don't think there is any way to interfere with a person's browser history.

-be able to write in the web adress of the HTML file of where he is taken

If the page is properly password protected, this doesn't matter. They would be prompted to Login before they could view it anyway.

Again if we understood exactly what it is that you are trying to achieve, it might make advising you a little easier.

Could we start with a URL?

_____________________________

Kitka
**It is impossible to make anything foolproof because fools are so ingenious.**


(in reply to Xenon)
jaybee

 

Posts: 14207
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: Preventing Hotlinking - 12/10/2004 6:47:08   
quote:

Also, they get the visitor on their site/page, who has no knowledge that the picture actually belongs to you or your page.


If it's my bandwidth that's being stolen they do. Check out

http://www.frontpagewebmaster.com/fb.asp?m=241321

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to Kitka)
Kitka

 

Posts: 2520
Joined: 1/31/2002
From: Australia
Status: offline

 
RE: Preventing Hotlinking - 12/10/2004 8:06:35   
LOL jaybee!

Your post stimulated memories of this thread:
http://www.frontpagewebmaster.com/m-177236/tm.htm

Some wonderful suggestions there. :)

I have only experienced hotlinking once,and then it is/was only a thumbnail so I haven't worried about it bandwidth-wise. What's really interesting, is that the sub-web it was contained in has been gone for 18 months or more, and "he" hasn't even noticed the errors yet! :):)

_____________________________

Kitka
**It is impossible to make anything foolproof because fools are so ingenious.**


(in reply to jaybee)
bobby

 

Posts: 11399
Joined: 8/15/1969
From: Seattle WA USA
Status: offline

 
RE: Preventing Hotlinking - 12/10/2004 11:34:39   
I had a friend who used to maintain an import enthusiast site (street racing)

He used to get this all the time. Instead of a "this pic is stolen" graphic, he would replace the hotlinked images with gay p0rn JPEGs... it was cruel and unusual punishment... but it did the trick...

:)

_____________________________

In order to remove a wall you must first remove the Windows®


:)

(in reply to Kitka)
jaybee

 

Posts: 14207
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: Preventing Hotlinking - 12/10/2004 11:40:02   
I don't think that would make much difference to this site. I'll PM you the link.

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to bobby)
jaybee

 

Posts: 14207
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: Preventing Hotlinking - 12/10/2004 13:05:22   
It's working. I've had 433 hits on the page that says Hotlinking is theft! Not bad for a days work. :)

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to jaybee)
Page:   [1]
OutFront Discoveries

All Forums >> Web Development >> General Web Development >> Preventing Hotlinking
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts