Demonic Posted February 26, 2008 Share Posted February 26, 2008 I want to hide javascript source from being viewed directly as in it can only be included on a website, is this possible with htaccess? Quote Link to comment Share on other sites More sharing options...
tinker Posted February 26, 2008 Share Posted February 26, 2008 as far as i'm aware it's truely client-side. but you could have simple js interface that passes to ajax, which in turn returns the updated content. Otherwise your looking at coding an object / plugin and getting your users to dl it (could use java). Maybe you can encode your js into hex or oct and it might work, i've only ever tried with html... Quote Link to comment Share on other sites More sharing options...
Demonic Posted February 26, 2008 Author Share Posted February 26, 2008 But again, I asked is htaccess possible to do this. Quote Link to comment Share on other sites More sharing options...
tinker Posted February 26, 2008 Share Posted February 26, 2008 htaccess is used by the server for server directives, once the page is downloaded it has no influence on the client machine... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.