You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by dojo karta <do...@gmail.com> on 2010/11/10 02:39:44 UTC

[users@httpd] File Extensions

Hey Greetings,

I wanted to know if HTTPD can help me to restrict serving files with
particular Extensions.

I mean I have a Web application primarily written in JS. I do not want to
throw away the code open to everyone. So is there a way I can configure
HTTPD to say no if somebody tries to access the js may be through browser.

V Rajkumar
Novell

Re: [users@httpd] File Extensions

Posted by Joeri De Backer <fo...@gmail.com>.
On Wed, Nov 10, 2010 at 2:39 AM, dojo karta <do...@gmail.com> wrote:
> Hey Greetings,
>
> I wanted to know if HTTPD can help me to restrict serving files with
> particular Extensions.
>
> I mean I have a Web application primarily written in JS. I do not want to
> throw away the code open to everyone. So is there a way I can configure
> HTTPD to say no if somebody tries to access the js may be through browser.
>
> V Rajkumar
> Novell

You can surely do that, but then your browser will not be able to
download the JavaScript,
and your browser will not be able to execute the JS.

JS is a client-side language, you will not be able to hide it for the user.
You can however obfuscate the code. Search google for that.

Regards,

J.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org