Re: Protect CSS,Image and JavaScript

2008-04-23 Thread Mike Orr
On Tue, Apr 22, 2008 at 8:32 AM, Jonathan Vanasco [EMAIL PROTECTED] wrote: I think that the poster is trying to make the directories viewable only to people who have authenticated to the server -- a la .htaccess http://wiki.pylonshq.com/pages/viewpage.action?pageId=9011252

Re: Protect CSS,Image and JavaScript

2008-04-23 Thread Alagu Madhu
Thanks. I am going to move all protect JavaScript files in controller. class JsController(BaseController): def login(self,access_id): ... response.headers['Content-Type'] = 'application/ javascript' return render('/js/login.js')

Re: Protect CSS,Image and JavaScript

2008-04-23 Thread Jonathan Vanasco
The second question is, why do you want to protect them?  If you're trying to prevent unauthorized users from accessing them, protection makes sense.  But if you want to force authorized users to view them only embedded in an HTML page rather than directly -- you can't.  If the browser can

Protect CSS,Image and JavaScript

2008-04-22 Thread Alagu Madhu
://127.0.0.1:5000/jj/login.js How do I protect my css,image and javascript? Thanks Madhu Alagu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons

Re: Protect CSS,Image and JavaScript

2008-04-22 Thread Jorge Vargas
the browser. http://127.0.0.1:5000/css/xul.css http://127.0.0.1:5000/image/xul.jpg http://127.0.0.1:5000/jj/login.js How do I protect my css,image and javascript? you don't becuase they are needed for the browser to apply them. remember external files to html are just links and those must

Re: Protect CSS,Image and JavaScript

2008-04-22 Thread David Turner
. http://127.0.0.1:5000/css/xul.css http://127.0.0.1:5000/image/xul.jpg http://127.0.0.1:5000/jj/login.js How do I protect my css,image and javascript? CSS, Javascript, and JPEG images all support comments. I would recommend that you follow the instructions at http://www.gnu.org/copyleft