httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Morgan Gangwere" <0.fracta...@gmail.com>
Subject Re: [users@httpd] allowing only javascript but preventing all else
Date Fri, 03 Aug 2007 20:10:46 GMT
On 8/3/07, Henry Cavillones <henry.cavillones@heavy.com> wrote:
>
>
>
> Hi-
>  Im looking to make an entire site password protected, except for some embed
> codes that get processed from publisher sites.

you'll want .htaccess for that.


>  The password protection should not interfere with serving the publisher
>  javascript code that resides at some subdirectory underneath the docroot.

so _everything_ is blocked except .js? you'll need a ReWriteRule to
change index.html to index.js

But why Javascript?

If you _really_ want you want to have a deny/allow:
< * >
 order: Deny, Allow
 Deny All
</>
< *.js >
 order: allow, deny
 allow: all
</a>

and have the code for .htaccess in DocRoot/,htacces and have the
password file point to say /var/passwords/sitename.htpasswd (for
security reasons)

>
>


-- 
Morgan gangwere

"Space does not reflect society, it expresses it." -- Castells, M.,
Space of Flows, Space of Places: Materials for a Theory of Urbanism in
the Information Age, in The Cybercities Reader, S. Graham, Editor.
2004, Routledge: London. p. 82-93.
-----BEGIN PGP SIGNATURE-----
Version: Gmail/GnuPG Min32 Hack
Comment: Using GnuPG and Gmail - ask me about Grim Fandango

iD8DBQFGV3KQCF9T/dUsmAgRAvESAKDfZYbRtebNO+WPfx6DryIvIwt9TgCgukZG
cIj5nSWws/pAeW2ESlj7GuM=
=Y4uC
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
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


Mime
View raw message