Hello people,
first, I'm new with ASP...
I have a page that have some included txt contenet on it...
I use
Code:
<!--#include file="somefile.txt"-->
for that,
and it works fine, so that's cool.
Now what I need is to disable direct opening of that somefile.txt file.
So I want above code to work on page, as it is now, but I need to disable if someone types www.mysite.com/somefile.txt to open that file in the browser.
So I guess I need to set something like HTTP acess for that file, but I have no clue how to do it on ASP server, so can you help me with this?..
Or if you know any other solution for this (maybe somehow just to hide link from page source code so that visitors can't see where it is, but I think this is not possible)
|