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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:46:20+00:00 2026-05-13T20:46:20+00:00

I have a software package placed in the root directory of my website. I’d

  • 0

I have a software package placed in the root directory of my website. I’d like all visitors which come from other websites to see the homepage first, before they download. How can I do that without using a script?

  • 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-13T20:46:20+00:00Added an answer on May 13, 2026 at 8:46 pm

    Apache’s mod_rewrite can do this. It can test ‘HTTP_REFERER’ variable and create a redirect.

    Example from http://httpd.apache.org/docs/2.0/misc/rewriteguide.html

    Description:

    Assume we have under
    http://www.quux-corp.de/~quux/ some
    pages with inlined GIF graphics. These
    graphics are nice, so others directly
    incorporate them via hyperlinks to
    their pages. We don’t like this
    practice because it adds useless
    traffic to our server. Solution:

    While we cannot 100% protect the
    images from inclusion, we can at least
    restrict the cases where the browser
    sends a HTTP Referer header.

    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://www.quux-corp.de/~quux/.*$ [NC]
    RewriteRule .*\.gif$        -                                    [F]
    
    RewriteCond %{HTTP_REFERER}         !^$
    RewriteCond %{HTTP_REFERER}         !.*/foo-with-gif\.html$
    RewriteRule ^inlined-in-foo\.gif$   -                        [F]
    

    Other variant http://articles.sitepoint.com/print/apache-mod_rewrite-examples

    RewriteCond %{HTTP_REFERER} !^$  
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?example\.com/.*$ [NC]  
    RewriteRule \.(gif|jpg|png)$ http://www.example.com/hotlinked.gif [R=301,L]
    

    First line checks if referer is empty. second – if it is not your domain.
    Third will redirect “bad queries” to “hotlinked.gif”

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

Sidebar

Related Questions

We have a software package which is about 16 years old. It's gone through
So I have created a piece of software which I wanna package and post
I have created a software package that produces a directory full of results. I
I have two directories which are different versions of the same software package. I'd
We have written a software package for a particular niche industry. This package has
I am developing a software package that transmits messages. Currently I have a header
I have a software renderer that I am porting from PC to the iPhone.
I wish to make a self contained LAMP distro software package from source with
I have done a software in C#. How can I make a Installation Package
Where I'm at we have a software package running on a mainframe system. The

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.