Forum Moderators: phranque
I prefer to use SSI if possible.
Loading the whole script in every download page is not convienience.
Pleae advice. Thank you in advance.
Thanks for your post and a belated welcome to Webmaster World. If you are still around I'm hoping this little bump will jumpstart an answer for you.
Sorry we missed this for you.
Can anyone suggest how I might script my global.asa (or some other server-side thingy) to intercept requests for .pdfs from outside my domain and serve up the abstract page instead? I can do the basic if/then programming, I just don't know enough about how global.asa works to know where in the file to put it, etc. If anyone can recommend a good reference for it, that would be helpful, too.
# Prevent offsite links to download.htm
SetEnvIfNoCase Referer ^http://www\.your-domain\.com local
SetEnvIfNoCase Referer ^http://your-domain\.com local
SetEnvIf Referer ^$ local<Files ~ "download\.htm$">
order deny,allow
deny from all
allow from env=local
</Files>