Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-22-2006, 06:20 PM
|
#1
|
Member
Registered: Jan 2006
Posts: 34
Rep:
|
.htaccess allow question??
is there any way to allow a certain file to be read only by a certain file?
I am trying to block a user from directly viewing a javascript file, but i want the file that needs the javascript to be able to read it and everything work.
thanks in advance
Tim
|
|
|
04-22-2006, 07:30 PM
|
#2
|
Member
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413
Rep:
|
I'm not positive I know what you're saying, but I'm assuming that the javascript file needs to be run by a webserver. If this is the case, then find out what user and group your server is running as. Once you have done that, open up your terminal, do a chown <user>:<group> <file> on that file, where <user> is the user your server runs as, <group> is the group your server runs as, and <file> is the path to the javascript file. Once you have completed this step, do a chmod 711 <file>. Also, you have to be root to do this.
Last edited by pdeman2; 04-22-2006 at 07:31 PM.
|
|
|
04-22-2006, 07:39 PM
|
#3
|
Member
Registered: Jan 2006
Posts: 34
Original Poster
Rep:
|
that is a problem...i do not have root access 
|
|
|
04-22-2006, 07:53 PM
|
#4
|
Member
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413
Rep:
|
In that case, I'm not sure. You could always ask your administrator to do that for you.
|
|
|
04-23-2006, 01:07 AM
|
#5
|
Senior Member
Registered: Aug 2005
Posts: 1,755
Rep:
|
If by JavaScript, you mean client-side JavaScript (what it usually means), then you can't do this because it's a completely client-side technology. The user (i.e. the web browser) needs to be able to load the JavaScript file.
|
|
|
All times are GMT -5. The time now is 11:55 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|