Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7056085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:49:32+00:00 2026-05-28T03:49:32+00:00

I think this is a little hard to explain. Basically, I have an android

  • 0

I think this is a little hard to explain. Basically, I have an android app which connects to a web app. I want requests that I make from the web app, to not be made anywhere else. I am using PHP, by the way. So if for say, I make a request from an android app called “send_data.php?foo=bar”, I want that request to not work, unless its indeed sent from the android app alone. So I cant just go to my browser and type “send_data.php?foo=bar” and it will work.

I have thought of one way, and that is to have a secret value in my request like “pw=12345”, and then in the PHP script, have if($pw = "12345"), but then I figured someone could packet sniff their phone and easily get that secret value. Is there any way possible I can accomplish this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T03:49:33+00:00Added an answer on May 28, 2026 at 3:49 am

    Qasim,

    One way you could do it is to use a post instead of a get variable and then access the link as an SSL link. Doing so would make sure that the posted information is encrypted. If you can’t do that you could do like I did. I encrypted the data that I am sending to the phone on the server. It stays encrypted on the phone and is only decrypted when it is used in the app. This way it doesn’t matter if someone sniffs my connection and gets the data. It’s all but useless. Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It's a little bit hard to find an appropriate title for this. I think
I think I am overthinking this issue a little and I'm hoping someone can
I think this must be simple but I can't get it right... I have
I think this mostly applies to web applications, since you often see things like
I think this is pretty typical, you have the same website project with an
It's been a little while since I have done some hard out coding (since
This question is a little opinion based, but I think it can be based
I got a little problem, what I think, can't be hard. but somehow, I
I'm writing an app that has a wizard type input section. Think MS Windows
I have a Rails 2.3.5 app which is serving a card game. I've been

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.