I would like to set up .htaccess filr that would alow customer, who comes from certan web site and note that address is masked by 2checkout address in the browser. I want that just people who will get to this page and click on download ( note: name.pdf) can start downloading.
Please, can you help me out. I have no idea how to work with .htaccess file.
Controlling access using HTTP_REFERER alone is problematic. The main problem is that many times, the referer info is not presented by the browser, or it is blocked by an intervening firewall or corporate proxy.
You can read up on using .htaccess to control access by starting with this Introduction to mod_rewrite [webmasterworld.com] post, and following the links. However, I think you will need to use a scripted approach, cookies, IP-tracking, or some combination of these to do what you want to do.
Thank you for your help. But after so long trying to find what the heck is wrong, I am just lost, as I am on begining of programming. I tried with PERL...take referrer site and redirect to the right download...Doesn't work... I tried with .htaccess does not work.