PDA

View Full Version : file downloads


borderline
01-11-2007, 09:23 AM
I can see on my site statistics that people have been downloading my style sheets. Is there a way to stop people downloading files on my site?
Do I need to use the .htaccess ? if so, how do I do it and where do I put it? I haven't got a clue.
I want people to see the site, I just don't want them to d/load my files

thanks in advance:)

Early Out
01-11-2007, 09:33 AM
I believe you're misinterpreting the site stats. Remember, your webpage (assuming static html with style sheets) isn't somehow "assembled" on the server, and then delivered optically to the viewer. The viewer's browser has to read the html code, apply the style sheets, and render the page. To do that, it has to bring the html file and all the related style sheets down to the PC - it stashes them temporarily in the browser cache. So, when you see one of your style sheets being "accessed" in the site stats, that just means that someone was viewing your web page. It doesn't mean that they specifically asked for a copy of your style sheet.

Even if someone were actually downloading your style sheets, the short answer is that, if you want people to be able to view your site, you have to give them access to it. If they can read the style sheets (which they must be able to do, in order to render the page), then they can capture those style sheets. They can always just save a copy from their browser cache while they're viewing your page.

borderline
01-11-2007, 09:40 AM
thanks Early Out for the explanation. I'm just a newbie and I don't know many things :p