htaccess to protect one file

is it possible to use htaccess to protect one file?


Rodney Blackwell - site owner/administrator

http://T-ShirtCountdown.com http://TalkT-Shirts.com/
http://ihateclowns.com/ http://Globie.com/ http://DomainJunkies.com/
http://EmailSources.com/ http://GotPaintball.com/
http://CircleRPrinting.com

Rodney Blackwell wrote:
>
> is it possible to use htaccess to protect one file?

Yes, something like this:

<Files filename.ext> Order allow,deny Deny from all </Files>

This one prevents all .shtml files from being viewed:

<Files *.shtml> Order allow,deny Deny from all </Files>


Peter N. Go - mailto:peter@icthus.net

http://CGI-City.net http://ArticleCity.com http://ZenSearch.com
http://BannerBuild.com http://RegisterGuy.com http://BudgetWebHost.com
http://NewsCuts.com http://FreeMailWeb.com

      Accept Credit Cards Online. Run An Affiliate Program.
          <a href="http://www.icthus.net/cgi-city/clickbank.html">http://www.icthus.net/cgi-city/clickbank.html</a>

thanks!


Rodney Blackwell - site owner/administrator

http://T-ShirtCountdown.com http://TalkT-Shirts.com/
http://ihateclowns.com/ http://Globie.com/ http://DomainJunkies.com/
http://EmailSources.com/ http://GotPaintball.com/
http://CircleRPrinting.com

“Peter N. Go” <peter@icthus.net> wrote in message
news:3C37A78D.613FDDB0@icthus.net
> Rodney Blackwell wrote:
> >
> > is it possible to use htaccess to protect one file?
>
> Yes, something like this:
>
> <Files filename.ext> Order allow,deny Deny from all </Files>
>
> This one prevents all .shtml files from being viewed:
>
> <Files *.shtml> Order allow,deny Deny from all </Files>
>
>
> –
> Peter N. Go - mailto:peter@icthus.net

> http://CGI-City.net http://ArticleCity.com http://ZenSearch.com
> http://BannerBuild.com http://RegisterGuy.com http://BudgetWebHost.com
> http://NewsCuts.com http://FreeMailWeb.com

> Accept Credit Cards Online. Run An Affiliate Program.
> http://www.icthus.net/cgi-city/clickbank.html