Logging in automatically with permissions in code to retrieve text from file

Discussion in 'Classic ASP' started by roryknowles, Oct 13, 2006.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Ok never mind ... figured out a way to secure them somewhat so they at least cant be downloaded ...

    Basically i made them ASP pages .. even though I am just opening them as text files in the code ..
    at the top of each one i create i put an include to another ASP page which does a check if the page is ever loaded or hit ... (eg like if someome tries to tear the page also)
    Basically that include simply does a response.end and Response.Status = '404 Not found' so it wont download .. or be viewed .. tested using a winsock exe tear app i wrote.

    So when i need to retrieve the text from those pages in my asp code, i just replace the Include file line with '' ...
    but when tearing the page they never get the text to replace anything ... so its safe enough for what i need in this case.
    They should never find the folder the files are in to start with but its just in case ..

    /emoticons/smile.gif

    Rory

    Bahamas Security - BahamasSecurity.com
    Bahamas Real Estate - KnowlesRealty.com
     
  2. Hi, i have some text files I read from ... i was wondering if there is a way to set permissions on the folder so to read the text file need to login .. but do the login through the code ...

    Any ideas?
    thanks

    Bahamas Security - BahamasSecurity.com
    Bahamas Real Estate - KnowlesRealty.com
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page