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

  • Home
  • SEARCH
  • 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 7621113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:06:56+00:00 2026-05-31T04:06:56+00:00

Is there a way to deny direct access to the application server for a

  • 0

Is there a way to deny direct access to the application server for a facebook application?

Facebook loads the application via an iFrame src=http://app-domain/, but you can clearly view the page source and find out that domain and copy paste the URL into a browser and view the application directly.

There is this signed_request and oauth_token in the API, I was wondering how to use that or if I can use that to limit direct access to the application.

So if a user inputs in the browser your application’s URL he gets redirected to Facebook.

Thank you.

EDIT:
I found a way that also works with form submission.

// Signed request
$signed_request = $facebook->getSignedRequest();
if(!$signed_request) header("Location: " . $settings['appBaseUrl']);

This redirects the browser while accessing the application directly and not through facebook.

  • 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-31T04:06:57+00:00Added an answer on May 31, 2026 at 4:06 am

    I found a way that also works with form submission. (Works for me, it might not work for you. Test it first.)

    // Signed request
    $signed_request = $facebook->getSignedRequest();
    if(!$signed_request) header("Location: " . $settings['appBaseUrl']);
    

    This redirects the browser while accessing the application directly and not through facebook.

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

Sidebar

Related Questions

Is there a way to deny direct access to a XML file without affecting
Is there a possible way to deny Matlab access to all cores? There are
Is there way that I can read the file from remote server using fopen
Is there a way for Apache to allow or deny a file download after
<authentication mode=Windows/> <authorization> <allow users=USERS/> <allow roles=ROLES/> <deny users=*/> </authorization> Is there a way
Is there a way to get around the following? httperror_seek_wrapper: HTTP Error 403: request
Is there a way for a java web app to get information on the
Is there a way to prevent users to directly download zip files from server?
In MS-SQL Server 2008 R2, is there a way to set a table permission
I would like to deny web robots to access a url like this: http://www.example.com/export

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.