Preventing that a txt file can be read.

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
MarkusL
-


Joined: 12 Nov 2005
Posts: 12

PostPosted: Thu Apr 13, 2006 5:39 pm    Post subject: Preventing that a txt file can be read. Reply with quote

Preventing that a txt file can be read.

In Apache it works like this:

Code:
<Files *.txt>
order allow,deny
deny from all
</Files>


Is it possible with Abyss Webserver?

thanks
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Thu Apr 13, 2006 5:43 pm    Post subject: Reply with quote

Just make it with a .php ending and php will try to process it. Make sure the contents is inbetween <?php and ?> tags though. This should work.

You could try password protecting the directory the text file is in.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
MarkusL
-


Joined: 12 Nov 2005
Posts: 12

PostPosted: Thu Apr 13, 2006 5:57 pm    Post subject: Reply with quote

The Inquisitor wrote:
Just make it with a .php ending and php will try to process it. Make sure the contents is inbetween <?php and ?> tags though. This should work.

You could try password protecting the directory the text file is in.


I think, with Abyss I can protect also the .txt file with a password, is that correct?
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Thu Apr 13, 2006 6:00 pm    Post subject: Reply with quote

MarkusL wrote:
The Inquisitor wrote:
Just make it with a .php ending and php will try to process it. Make sure the contents is inbetween <?php and ?> tags though. This should work.

You could try password protecting the directory the text file is in.


I think, with Abyss I can protect also the .txt file with a password, is that correct?


If you protect a directory with the file in then yes you can, otherwise Im not sure if you can do single files.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
MarkusL
-


Joined: 12 Nov 2005
Posts: 12

PostPosted: Thu Apr 13, 2006 6:07 pm    Post subject: Reply with quote

Quote:


If you protect a directory with the file in then yes you can, otherwise Im not sure if you can do single files.


I tried it now, and it works. (with single file)
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Thu Apr 13, 2006 6:20 pm    Post subject: Reply with quote

MarkusL wrote:
Quote:


If you protect a directory with the file in then yes you can, otherwise Im not sure if you can do single files.


I tried it now, and it works. (with single file)


You learn something new every day :-) Single files can be protected :-)
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Thu Apr 13, 2006 8:17 pm    Post subject: Reply with quote

You can use Abyss's "IP Address Controle" feature which limits access to files
to a given IP/IP Address range. Check it out, that should be what you wanted.

Sincerely, TRUSTpunk
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Fri Apr 14, 2006 11:31 am    Post subject: Re: Preventing that a txt file can be read. Reply with quote

MarkusL,

Add an IP control rule for virtual path /*.txt and deny access to all IP addresses (add * in the Denied IP addresses table).
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
MarkusL
-


Joined: 12 Nov 2005
Posts: 12

PostPosted: Fri Apr 14, 2006 3:34 pm    Post subject: Re: Preventing that a txt file can be read. Reply with quote

aprelium wrote:
MarkusL,

Add an IP control rule for virtual path /*.txt and deny access to all IP addresses (add * in the Denied IP addresses table).


It works.

thanks
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group