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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:19:59+00:00 2026-05-11T17:19:59+00:00

My problem is a little bit hard but simple. I have (or there is)

  • 0

My problem is a little bit hard but simple.
I have (or there is) a web page (http://sub.domain.com/page.php). An application graps data from this page.
My aim is to change this page, not change it but let the system grap the data from c:\page.php. How to do the redirection?
Thanks

  • 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-11T17:19:59+00:00Added an answer on May 11, 2026 at 5:19 pm

    Like the others, I’m a little bit unclear on what exactly you’re asking to do, but I have a good guess. Let me restate your question to see if I got the scenario correct:

    You have an application which retrieves and processes data from an arbitrary web page. You do not have control over this application’s behavior and the URL it is fetching is not a configurable option. You want to be able to override the URL and cause the application to instead pull data which you have produced instead of the default URL which it is pulling.

    If the “page.php” page is the only data which your application pulls from sub.domain.com, then one simple method of subverting the normal behavior would be to override the DNS for sub.domain.com on your local nameserver or in the hosts file of the machine where the application is running. That would be /etc/hosts in Unix/Linux/OS X or %SystemRoot%\system32\drivers\etc\ on a modern Windows machine.

    You could add an entry for sub.domain.com in the hosts file which pointed to the IP address of a web server you do control and then you could make that server respond with whatever content you wished.

    If the application relies on more content from sub.domain.com then this approach might be too cumbersome to be practical, since you’d have to replicate all the data on your webserver which is pretending to be sub.domain.com somehow, leaving it normal while just transforming the page.php content.

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

Sidebar

Related Questions

i have little bit of problem while working with External entity reference in External
I'm having a little bit of a problem scaling my images to a properly
I'm having a little bit of trouble understanding what the problem is here. I
i have little problem with boost::asio library. My app receive and process data asynchronously,
I have a little problem with a Listview. I can load it with listview
I've run on a little problem today: I have a JS drop down menu
I'm having a little bit of a problem here, whenever I use an action
I have this problem with a link in an HTML page where the first
I have to to game for my school project. I have a little problem
Okay, here's my problem. Please forgive me as it's a little bit complicated. I'm

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.