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

Re: I need a little help

On Mon, Mar 17, 2003 at 01:13:19PM -0700, Didier Caamano wrote:
> 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

At first I thought this was a question on how to ENABLE visitors to view
the source... to be honest I'm amazed that someone who's taken the time to
subscribe to an open source operating system mailing list would want to
know this... for those of you who want to facilitate viewing source on a
page, don't forget about:

<a href="view-source:FULL_URL">view page source</a> should work

You can also do it with javascript and it will definitely work:
onclick="location.href = 'view-source:' + location; return false;"

You can also do this kind of thing with PHP source files, but the how to
part is outside of my instant memory recall.


Emma Jane Hogbin
[[ 416 417 2868 ][ www.xtrinsic.com ]]

Reply to: