How to protect .txt .dat file direct read

Started on the old forum in April 2012 · view the original in the archive · old links redirect here

4 replies · 670 views · started 14 years ago · 1 min read

2 participants
WapAdda Junior · 25 posts #1

Please help me. anybody know how to protect that?

arnage Lead · 811 posts #2

Can be done via htaccess.

<Files ~ ".htaccess$|.dat$|.txt$">
Order allow,deny
Deny from All
</Files>
<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
WapAdda Junior · 25 posts #3

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

arnage Lead · 811 posts #4

Save only this to your htaccess file, nothing more and there will be no server error.

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
WapAdda Junior · 25 posts #5

Happy to say ur code working so gd

Sorry bro, ur shared htaccess code r working.. So tnk u so much brother.

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close