Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & phranque

Message Too Old, No Replies

.htaccess help

how to set up .htaccess file

12:46 am on Aug 17, 2003 (gmt 0)

New User

10+ Year Member

joined:Aug 14, 2003
votes: 0


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.

Thank you


7:44 pm on Aug 17, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
votes: 0


Welcome to WebmasterWorld [webmasterworld.com]!

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.


1:10 am on Aug 18, 2003 (gmt 0)

New User

10+ Year Member

joined:Aug 14, 2003
votes: 0

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.