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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:14:05+00:00 2026-05-23T14:14:05+00:00

I have a free PHP webserver and I would like to provide a redirect

  • 0

I have a free PHP webserver and I would like to provide a redirect to external links page, just like deviantart.com does. Is there any way to do this with just PHP? I have no access to the server.

Edit: I meant a page asking “Are you sure you want to leave [MA WEBSITE]? NOPE ; DUH – GO TO http://outside-example.com“

Edit2: I actually meant a function to catch outside links and replace them with a /redirect/?url=PARSED_URL_ADDRESS

  • 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-23T14:14:06+00:00Added an answer on May 23, 2026 at 2:14 pm

    You need to detect if there is any link which redirects to outside website then you need a page to show something like “Now Leaving yourwebsite.com”

    If that is the case then you need to analyze the content of your page before rendering and find out if there is any tags and replace ref of them with some gatway.php?url=outgoing-url

    Where in gateway.php compare if the url belongs to your website or external website by using string comparison methods

    Use this js code in footer (I am expecting there is some common footer page)

    var urls = document.getElementsByTagName("a");
    for (urlIndex in urls ) {
       urls[urlIndex].href = "dummy.php?url="+urls[urlIndex].href; //replace dummy.php with urs
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a php page which contains keys and salts and I would like
Suppose I have a free function called InitFoo . I'd like to protect this
I have this script on one free PHP-supporting server: <html> <body> <?php $file =
I know that in PHP you don't have to free memory. Is it reached
I would like to know of a simple banner management system php based -
I'm looking for free php and jquery(would be nice) upload script which I could
I have recently started exploring free hosting sites where they provide free mysql and
On the project voldemort design page: http://project-voldemort.com/design.php It is stated that the hash ring
i have a table called horse, i would like to create a form to
I have a free standing set of files not affiliated with any C# project

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.