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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T20:12:00+00:00 2026-06-18T20:12:00+00:00

since this is the first time someone made me click some referral link i

  • 0

since this is the first time someone made me click some referral link i got very curious. Here in the screenshot you will see a masked url which directly goes to some referral link in some other site.
Masked Referral Link

The interesting part which got my attention and the reason i clicked the link is that link has a file extension as you will notice. I can think of PHP redirects, .htaccess redirects but couldn’t exactly think a solution for filenames masking.

As usually we can parse the url in .htaccess and redirect .zip extensions to a php file to check whether the file is valid filename or a key value for redirect in database (This is a solution too) but i didn’t notice any redirect on this link.

Is there any other possible ways for 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-06-18T20:12:01+00:00Added an answer on June 18, 2026 at 8:12 pm

    You can redirect any request with .htaccess. For example:

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php [QSA,L]
    

    will redirect all requests to index.php, in which you can check if the user wants file.zip just by looking into $SERVER['REQUEST_URI']. Then serve him the file you want:

    $zip = '/path/to/zip/file/outside/the/web/root.zip';
    
    // set correct headers, so the browser identifies the response as a zip file
    header('Content-type: application/zip;');
    header('Content-Transfer-Encoding: binary');
    header('Content-Length: ' . filesize($zip) . ';');
    header('Content-Disposition: attachment; filename="whatever.zip";');
    
    // output the file contents
    readfile($zip);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

UPDATE : Since this question is getting some views, I figured I'd better highlight
Require a huge help here, since this is affecting our production instance. One of
I have just started a new Xcode project for the first time since downloading
I am using dshownet(first time) and C#. I have got a sample to take
I'm really new to Ruby (first day!) and I'm struggling with this here. I'm
This is my first question here, if I did something wrong, tell me... I'm
first, you should know that i suck big time at SQL. Here is my
First time poster so sorry if this is too long, but I've hit a
Last night someone on here really helped me out a lot with my first
We're getting a very intermittent (like every few weeks someone complains about this) primary

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.