htaccess and its usage to allow access of a url to android user using my application

I am a newbie for this security purpose and php files

I came to know about htaccess when i saw my files and databases are not secure.

I am filling listview in Android application from JsonArray parsing.This JsonArray is coming from Server when a specific URL is clicked on android application There is a php file on server and there i have echoed the result . Now the problem is with the data access .When I use that url on PC from browser ,It prints all the data on the browser. NOw how can I give access to only those user who are using my android application. I have heard of htaccess file but dont know how to use it and write it Or is there any other way to secure or get rid of direct accessing from browser

Answers


You can use htaccess file but I think there better way. .htaccess file is fine-tuning ruleset for Apache server. It can reprogram request completely. I use it normally with Static files. But in your case dynamic php page. Which means you can pass a security session key. When people login to your app they create session key. SSID This will be alive for some limited amount of time. like 1 hour. And every request required it. No correct SSID means no data.


Need Your Help

Button click event

asp.net

I have several instances of user controls on a page. They are also nested in each other. Since these controls are created dynamically, I am having trouble maintaining their state. I decided to save...

Converting String Mac Address to Hex

java string hex parseint

I am trying to convert a string macaddress to hex value. I got a C# code which does the same thing but when I use the java code it gives me negative values. as in the C# code returns signed intege...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.