Welcome to WebmasterWorld Guest from 54.196.244.186

Forum Moderators: Ocean10000 & incrediBILL & 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
posts:4
votes: 0


Hi!

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

Suzi

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
posts:25430
votes: 0


suzikz,

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.

Jim

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

New User

10+ Year Member

joined:Aug 14, 2003
posts:4
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.

I am LOST

HELP HELP HELP