If I have multiple domains pointing to the same site.
If I have a domain called admin-domain.com
I only want to allow admin-domain.com/admin/
But disallow anything-else.com/admin/
Also this needs to be done with .htaccess
Also there is no actual admin
directory, but there are many urls like ...com/admin/products/edit/54
because I am using the CakePHP framework which already uses htaccess for url's like this. I just want to limit admin access to 1 domain.
Edit the .htaccess file in the Cake webroot directory:
If you wanted to add the www to this. You can use:
Just remember, the referring agent can be spoofed. ;-)