[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: I need little help



Mon, 17 Mar 2003 13:12:58 -0700
"Didier Caamano" <blood_omen_666@hotmail.com>:

> Greetings to all:
> 
> I was wondering how I can configure apache 1.3 to not allow visitors to view 
> the source code of the page when they click on View ->Source
> 
> Is there any option in apache to do that?, any hint will be appretiated.
> 
> Didier.

You could do that with PHP.
Just add 
    AddType application/x-httpd-php-source .htmls
and symlink your .html-file to .htmls

If you then browse to http://yourdomains.com/your/file.htmls
you will see the html/php source, nicely formated with a lot
of colour.

hih, Marcel



Reply to: