View previous topic :: View next topic |
Author |
Message |
MarkusL -
Joined: 12 Nov 2005 Posts: 12
|
Posted: Thu Apr 13, 2006 5:39 pm Post subject: Preventing that a txt file can be read. |
|
|
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 |
|
|
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Thu Apr 13, 2006 5:43 pm Post subject: |
|
|
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 |
|
|
MarkusL -
Joined: 12 Nov 2005 Posts: 12
|
Posted: Thu Apr 13, 2006 5:57 pm Post subject: |
|
|
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 |
|
|
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Thu Apr 13, 2006 6:00 pm Post subject: |
|
|
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 |
|
|
MarkusL -
Joined: 12 Nov 2005 Posts: 12
|
Posted: Thu Apr 13, 2006 6:07 pm Post subject: |
|
|
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 |
|
|
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Thu Apr 13, 2006 6:20 pm Post subject: |
|
|
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 |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Thu Apr 13, 2006 8:17 pm Post subject: |
|
|
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 |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Fri Apr 14, 2006 11:31 am Post subject: Re: Preventing that a txt file can be read. |
|
|
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 |
|
|
MarkusL -
Joined: 12 Nov 2005 Posts: 12
|
Posted: Fri Apr 14, 2006 3:34 pm Post subject: Re: Preventing that a txt file can be read. |
|
|
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 |
|
|
|