On Sun, Feb 28, 2010 at 4:19 PM, Simone Dal Maso simone.dalmaso@juvox.itwrote:
Hi, I don't know if this is a drupal issue, so I apologize if this request is made in the wrong place.I have my website, www.example.com. I create a subdomain and it is properly running, with help of domain module. http://subdomain.example.com
this subdomain is a service for a customer that has his own website, not with drupal, but wants a particular service and I make it for him. He wants that: http://subdomain.example.com is accessible only from its link in his homepage, not from external user. In a few words, the subdomain should work only if the visit comes from his website. Do you think that a similar thing have sense? I still didn't give any answer about it, because it appears to me a strange request and I don't know how to realize it.
What do you think about it?
ps: I really thank this group because every time I made a question I always had a good feedback, sometime I forgot to thank people.
-- [ Drupal support list | http://lists.drupal.org/ ]
This doesn't seem to me a drupal issue. I don't if some module is there to check referring website, but you can use this in the htaccess -
RewriteCond %{HTTP_REFERER} !=http://customerwebsite.com RewriteRule (.*) runawaypage.html [R=301]
THIS SHOULD COME BEFORE DRUPAL REWRITE RULES OTHERWISE IT WILL NOT WORK.