Thursday, 8 August 2013

Apache - Redirect external traffic to a particular page - internal links can access page

Apache - Redirect external traffic to a particular page - internal links
can access page

I'm new to appache so please forgive me if this has been answered before -
I searched...
I have a page: gateway.html
I only want links from within my domain, example.com, and traffic from one
other domain, otherdomain.com, to be able to access the page.
All other external traffic I would like to redirect to a different page on
my domain: about.html
I've googled the heck out of mod_rewrite and http_host but I haven't seen
this specific question addressed.
I assume it's a combination of RewriteCond and RewriteRule
To sum up:
Only links from within my domain and one other domain should be able to
access gateway.html. All other links & manually entered URLs trying to get
that page should be redirected to a 'about.html' and if they still need to
access gateway.html they can from there.
Reasoning: Preventing 'back door' access to a chat service that costs $$$.
Users should go through self-help steps before accessing chat.
Thanks!I'm new to appache so please forgive me if this has been answered
before - I searched...
I have a page: gateway.html
I only want links from within my domain, example.com, and traffic from one
other domain, otherdomain.com, to be able to access the page.
All other external traffic I would like to redirect to a different page on
my domain: about.html
I've googled the heck out of mod_rewrite and http_host but I haven't seen
this specific question addressed.
I assume it's a combination of RewriteCond and RewriteRule
To sum up:
Only links from within my domain and one other domain should be able to
access gateway.html. All other links & manually entered URLs trying to get
that page should be redirected to a 'about.html' and if they still need to
access gateway.html they can from there.
Reasoning: Preventing 'back door' access to a chat service that costs $$$.
Users should go through self-help steps before accessing chat.
Thanks!

No comments:

Post a Comment