Hi Rajib, CSS and JS files, in the context of a Cake application, are executed on the client-side (web browser). Your Cake application doesn't actually do anything with the CSS or JS files, they are just passed onto the client and executed there. Restricting access as you have will only prevent your users from viewing your website/application correctly.
Cheers, Tim On Wed, Dec 12, 2012 at 8:33 PM, Rajib Mahmud <[email protected]> wrote: > Dear all, > Thanks in advance. My problem is that if someone tries to put the URL like > http://test.com/css_or_js_or_otherFolder then it goes directly those > folder under webroot. Now I need to restrict all other surfer to get that > access other then me. Main objective not to share css or js or any other > user files under css or js or sub folder like test under webroot directly. > But it will be used by the website itself. When I restricted the css or js > or otherFolder subFolder using .htaccess then the website itself does not > use as well. I want to use those files by the website itself not downloaded > or viewed or accessed by the others. Pls help me in this matter. > > Thanks > Rajib > > -- > Like Us on FaceBook https://www.facebook.com/CakePHP > Find us on Twitter http://twitter.com/CakePHP > > --- > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > Visit this group at http://groups.google.com/group/cake-php?hl=en. > > > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cake-php?hl=en.
