How to protect .txt .dat file direct read

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to protect .txt .dat file direct read

    Please help me. anybody know how to protect that?

    #2
    Can be done via htaccess.

    Code:
    <Files ~ ".htaccess$|.dat$|.txt$">
    Order allow,deny
    Deny from All
    </Files>
    <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

    Comment


      #3
      Oh no! When i use dis htaccess code after showing da page 500 internal server error

      Comment


        #4
        Save only this to your htaccess file, nothing more and there will be no server error.
        <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

        Comment


          #5
          Happy to say ur code working so gd

          Sorry bro, ur shared htaccess code r working.. So tnk u so much brother.
          Last edited by WapAdda; 08.04.12, 12:07.

          Comment

          Working...
          X