PDA

View Full Version : how do i block remote loading?


cyradis
04-24-2001, 10:09 AM
i want to prevent people from linking to my images, as it is a big bandwidth eater. do i protect the folder or what? how do i let my pages access it without allowing another server to load it? i know it's possible, since all the major free sites are not allowing it :)

thanks!
cy

Odium
04-24-2001, 10:12 AM
Here's a good tutorial on how to prevent image linking using an .htaccess file:

http://www.perlaccess.com/tutorials/8/8.6.html

cyradis
04-24-2001, 12:05 PM
cool!
one more question - this says it is for apache. is that what we have?

cy

cyradis
04-24-2001, 12:14 PM
it says the file has to be uploaded in ascii mode? what is that? if i save it as ascii text and copy it to the site using ftp drag and drop, is that right?

thanks again!
cy

Odium
04-24-2001, 02:50 PM
Apache is what we have, and basically what you need to do is stick the code into a .txt file called htaccess.txt, then upload in ascii mode (drag and drop should work, just make sure you upload in ascii mode and not binary - most ftp programs have a couple of buttons on a toolbar that let you switch between ascii and binary mode), then rename the .txt file .htaccess (no extension).

cyradis
04-24-2001, 03:08 PM
If i open my page from Internet Explorer 5.5 with the addy ftp://addy:port i can upload my files by dragging from my folder to the browser window. Is this Ascii?

also, please tell Brendan he is a sweetie for telling me about the forums and checking on my registration :)

thanks for all the help!!! :D

cy

Odium
04-24-2001, 09:35 PM
Oh, ok...I thought you were using a FTP program, and dragging and dropping. Anyway I'm not quite sure what exactly that method is that you're using to upload, as I've always used a FTP client, but I think it should recognize a .txt file as ascii and you should have no problems. Just upload the file, then rename it as .htaccess and see how it works...

cyradis
04-25-2001, 10:16 AM
and see.
thanks! :)

cy