开发者

CakePHP question: is there any problem with 755 permission on server?

开发者 https://www.devze.com 2023-04-06 14:49 出处:网络
My website on server is with 755 permission for all files . Is there any problem with this permission ? Is this permission vulnearable ? Or should i decrease the permission ?

My website on server is with 755 permission for all files .

Is there any problem with this permission ? Is this permission vulnearable ? Or should i decrease the permission ?

How can i stop seeing javascript and css files of that website ? Is that possible ?

From page view source one can easily see javascript 开发者_如何学Cand css files and can download it.


644 is probably better than 755 because website resource files are usually not directly executable.

Aside from that, you cannot (well, should not) stop someone from seeing Javascript and CSS files. A user's browser needs to be able to download those files in order to render the website correctly.


1.For files, you don't need to execute them, so 644 is better than 755.

2.You can't stop others seeing or downloading your javascript and css, they are living in the client.

0

精彩评论

暂无评论...
验证码 换一张
取 消