Re: [users@httpd] Controlling access to web site based on domain name

2022-12-16 Thread Rose, John B
"you can require the traffic to match a certain rDNS value" rDNS means Reverse DNS I am not sure they want to do something like reverse DNS lookup. From: Frank Gingras Sent: Friday, December 16, 2022 4:33 PM To: users@httpd.apache.org Subject: Re: [users@httpd

Re: [users@httpd] Controlling access to web site based on domain name

2022-12-16 Thread Frank Gingras
You're referring to controlling access via the referrer, which is trivial to spoof; I strongly recommend not using that approach. The other concept to understand here is that you can require the traffic to match a certain rDNS value. If you still want to match the referrer, you can do so with wr

Re: [users@httpd] Controlling access to web site based on domain name

2022-12-16 Thread Rose, John B
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 clickin

RE: [users@httpd] Controlling access to web site based on domain name

2022-12-16 Thread j...@k6ccc.org
Brian beat me to it. Set up virtual hosts with the desired domain listed and the default (what someone will get if they access via IP) goes to your desired "wrong way to get here" page. Jim -Original Message- From: "Rose, John B" Sent: Friday, December 16, 2022 13:00 To: "users@htt

Re: [users@httpd] Controlling access to web site based on domain name

2022-12-16 Thread Brian Wolfe
Have you looked into virtual hosts configurations? https://httpd.apache.org/docs/2.4/vhosts/examples.html On Fri, Dec 16, 2022 at 4:01 PM Rose, John B 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 parti

[users@httpd] Controlling access to web site based on domain name

2022-12-16 Thread Rose, John B
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 th