Brain

Thanks for replying.

I think I may not have worded my question clearly...'

If I have web site ...
mysite.abc.com

In the htaccess on that page I put something like ... Require def.com

And I want users from a link on the page somesite.def.com to be able to access 
mysite.abc.com by clicking on that link

But I dont want anyone from a link on a site named somesite.xyz.com to be able 
to access the homepaage on mysite.abc.com. I want to redirect them to 
mysite.abc.com/info.html

So any domain not explicitly listed in htaccess file will get redirected.


________________________________
From: Brian Wolfe <wolfebrian2...@gmail.com>
Sent: Friday, December 16, 2022 4:08 PM
To: jbr...@utk.edu.invalid <jbr...@utk.edu.invalid>
Cc: users@httpd.apache.org <users@httpd.apache.org>
Subject: Re: [users@httpd] Controlling access to web site based on domain name

You don't often get email from wolfebrian2...@gmail.com. Learn why this is 
important<https://aka.ms/LearnAboutSenderIdentification>
Have you looked into virtual hosts configurations?

https://httpd.apache.org/docs/2.4/vhosts/examples.html<https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fhttpd.apache.org%2Fdocs%2F2.4%2Fvhosts%2Fexamples.html&data=05%7C01%7Cjbrose%40utk.edu%7C8c53f584788a4c5ffd3108dadfa9c6ce%7C515813d9717d45dd9eca9aa19c09d6f9%7C0%7C0%7C638068217538638429%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2FRKjCoB6a%2Fr5D8m9NzJUgpHn7nXv9n1zPpQFV68Wzz8%3D&reserved=0>

On Fri, Dec 16, 2022 at 4:01 PM Rose, John B <jbr...@utk.edu.invalid> wrote:
We would like to control access to a web site based on a listed domain and 
redirect any accesses from domains not
listed to a particular web page.

We need to be able to use the domain names and not IP addresses.

Is this something we should be able to do within .htaccess and using Rewrite 
for the redirect or do we need to use something else?

Thanks




--
Thanks,
Brian Wolfe
https://www.linkedin.com/in/brian-wolfe-3136425a/<https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fbrian-wolfe-3136425a%2F&data=05%7C01%7Cjbrose%40utk.edu%7C8c53f584788a4c5ffd3108dadfa9c6ce%7C515813d9717d45dd9eca9aa19c09d6f9%7C0%7C0%7C638068217538638429%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Vymgo6BPWgHQmHjYfLGxTQJiMIDyuI1Z3JgwSnNT0jM%3D&reserved=0>

Reply via email to