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
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')
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
://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
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
.
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