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 6037785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:07:29+00:00 2026-05-23T06:07:29+00:00

I am going about creating a service API to get latest articles from a

  • 0

I am going about creating a service API to get latest articles from a database server into my iPhone app. In a simplistic way how can I go about making sure only my iPhone app is the consumer of the API and no other client can access it? I am not looking for a super secure solution but I just want to be able to put some level of firewall for incoming requests.
Also, any code snippets in PHP to enable this client side authentication?

  • 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-23T06:07:30+00:00Added an answer on May 23, 2026 at 6:07 am

    There really isn’t a good easy way to lock down your API to limit it to requests coming from your application. You could do user agent checking, but that’s more trouble than it’s worth. You could pass a specific query string key/value pair (such as a UUID), but that’s easy to spoof, and wouldn’t provide any value.

    If you’re willing to invest the time, there are other approaches that you can take that involve generating keys/tokens/nonces and checking them when the request is made to the server (Oauth is an example of this).

    You should evaluate your requirements and decide how important it is that you protect your data. Given that you’re looking for an easy solution, I’m assuming the data isn’t really that important, and that all this work isn’t necessary.

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

Sidebar

Related Questions

I have a few questions about creating a database from a model. Is it
I am thinking about going into .net framework client profile, but currently I am
Wondering if I am going about this the right way. I am creating a
I've followed all posts that I've found about creating a Universal App that uses
We're working on creating a Windows service to import/export data from various places. Our
I may be going about this backwards... I have a class which is like
I am not sure if I am going about this the best way, but
Is a regular expression the correct way of going about this? I have a
i'm trying to make the following routes .. and currently i'm going about this
Occasionally I'll come across comments about inheritance going out of style in enterprise application

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.