irken Posted January 12, 2007 Share Posted January 12, 2007 Hello.Here's the scenario.. I have a file called test.xml in /services/test.xml. I would like to be able to access this file from my javascript code elsewhere, but I don't want the users to be able to fetch it by typing in the URL to said file. Is this possible?I tried doing something like[code]RedirectMatch 301 /.* http://www.google.com/[/code]That resulted in not being able to use the file from the script.Ideas? I have no intention of using PHP to retreive it's contents and whatnot. Thanks. Quote Link to comment Share on other sites More sharing options...
steviewdr Posted January 12, 2007 Share Posted January 12, 2007 Your could urlencode the URL in javascript. The URL will still be there in plain view - but it wont be easy to solve - i.e. a person would have to urldecode the URL to see it in plain text.-steve Quote Link to comment Share on other sites More sharing options...
irken Posted January 12, 2007 Author Share Posted January 12, 2007 [quote author=steviewdr link=topic=122094.msg503183#msg503183 date=1168617147]Your could urlencode the URL in javascript. The URL will still be there in plain view - but it wont be easy to solve - i.e. a person would have to urldecode the URL to see it in plain text.-steve[/quote]That might be a good idea, I'll have to read up on that.Thank you. Quote Link to comment Share on other sites More sharing options...
irken Posted January 14, 2007 Author Share Posted January 14, 2007 Hrm, test.Missing solved/lock button. 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.