embedding other packages (singapore)
Posted: Thu Mar 09, 2006 2:15 am
depending on the package, I've been sucessfully able to embed another package (specifically singapore) into my cms site, whilst disallowing access to the site directly with the following method.
a) create a user defined tag called "packagename"
which just does an "include()"
b) create a .htaccess file in the package directory with
SetEnvIfNoCase User-Agent "^$" locally_linked=1
SetEnvIfNoCase Referer "^" locally_linked=1
Order Deny,Allow
Deny from all
allow from env=locally_linked
Your Mileage May Vary, but this works relatively well for me.
a) create a user defined tag called "packagename"
which just does an "include()"
b) create a .htaccess file in the package directory with
SetEnvIfNoCase User-Agent "^$" locally_linked=1
SetEnvIfNoCase Referer "^" locally_linked=1
Order Deny,Allow
Deny from all
allow from env=locally_linked
Your Mileage May Vary, but this works relatively well for me.