View Full Version : htaccess
*-(:Mo:)-*
10-18-2006, 12:40 PM
how do i use htaccess to allow a file to be only viewed on my site and no other site and also be undownloadable
thanks
mo
radman626
10-18-2006, 01:03 PM
Not sure how to do it in htaccess, but you can add a "break frames" script to your pages so they can't be used in other site's frames.
GO ILLINI
10-18-2006, 02:03 PM
undownloadable as in the offline website crawlers? cant be done.(if thers a way I haven't heard it) They can make themselves identify as a normal browser. Also remember that anything you put up for people to see... it can and has been downloaded.
As for the your site only you might to be able to make some sort of thing going... Look in a tutorial for hotlink protection and see what you can do.
croatiankid
10-18-2006, 02:13 PM
yeah, if it can't be downloaded, it can't be viewed. by anyone. you could eventually password protect it (either writing/implementing a php script, or through your host's control panel). I suggest you put this question in the Server Side Forums, specifically "Other server side languages/issues". i asked a htaccess question there and got help (good help); this is one of the browser scripting forums.
oracleguy
10-18-2006, 09:37 PM
Well you can use htaccess to prevent hot linking so other sites can link in images and such for your site. But someone can still get a copy of it by just simply viewing your site. Browsers have to download all the elements, html, css, js, images, etc. in order to display them (with some minor exceptions).
*-(:Mo:)-*
10-19-2006, 10:42 PM
ok, i thought it could be only when a page from my site is viewing the file, and anything else, will receive an error
MODS - can you move this to server side scripting please
otherwise ill find out how to embed the videos in flash files and use actionscript so that they only work on my site
thanks everybody
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.