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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T17:16:17+00:00 2026-06-13T17:16:17+00:00

We only want users from a specific website to use our services. Is there

  • 0

We only want users from a specific website to use our services. Is there a way to redirect all traffic that does not come from a specific referrer, to a website of our choosing, via htaccess?

Also, this is for the first page only. So if they get to our site, they’re going to browse a new page, and their referrer for the new page would apparently be the site they are already on.

Thank you!

  • 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-13T17:16:19+00:00Added an answer on June 13, 2026 at 5:16 pm

    Try adding this in the htaccess file in your document root:

    RewriteEngine On
    RewriteCond %{HTTP_REFERER} !^http://the-ok-domain.com [NC]
    RewriteRule ^/?first-page.html$ http://the-website-of-your-choosing.com/ [L,R]
    

    You could also make it so you add your own domain to the referer check:

    RewriteEngine On
    RewriteCond %{HTTP_REFERER} !^http://the-ok-domain.com [NC]
    RewriteCond %{HTTP_REFERER} !^http://your-domain.com [NC]
    RewriteRule ^ http://the-website-of-your-choosing.com/ [L,R]
    

    Then you can include all of your pages in the check.

    Note that referers can be easily forged and any htaccess file using mod_rewrite in any of your subdirectories will supercede these rules (unless those htaccess files have the RewriteOptions inheret option set)

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

Sidebar

Related Questions

I have a developer eyes-only activity that I don't want end users to reverse
I want to select only specific attributes from a model(id,name). The SQL-command can be
I have a array with users sorted by score. I only want to output
I want only a (faculty) group of users to be able to access a
I want to only allow users with IE8 (not IE6, IE7) or another browser
There is this PHP script on my website which I don't want people to
Here's what I want to accomplish: Select all rows from table posts while also
I am rewriting our company website in cakephp, and need to find a way
What I'm trying to do is select data from a specific row only in
I have a website project that is consuming user controls from another shared 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.