Welcome to WebmasterWorld Guest from 22.214.171.124
Forum Moderators: phranque
i.e say the CSS file is in ../file.css can you prevent access to viewing that file so when they type http*//www.domain-name.com/file.css (de-linked) it just returns a 404 or something?
(edited by: DaveAtIFG at 5:22 pm (gmt) on Dec. 7, 2001)
if Request.ServerVariables("HTTP_REFERER") <> "" then
...real file content goes here...
set asp handler for .css and .js extensions in IIS admin
now if someone requests a file without referer (e.g. he typed it in browser url field) he'll got a empty page
surely someone still could get page content from browser cache after normal request
First someone would have to know the name of the database. But even if they did, you can place a database above the root. Scripts running on the server can access it, but there's no way to directly access it.
To some extent it could be done with mod_rewrite - in the same way that you can protect images from being used within other sites... but as smalltime says - the files will be in the browser cache -- may stop some though.
I haven't tried it and there maybe other unpleasant side effects.
Heres the info from the previous post.... if you try it let me know how it goes :)