homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

.htaccess help
how to set up .htaccess file

10+ Year Member

Msg#: 338 posted 12:46 am on Aug 17, 2003 (gmt 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




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

Msg#: 338 posted 7:44 pm on Aug 17, 2003 (gmt 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.



10+ Year Member

Msg#: 338 posted 1:10 am on Aug 18, 2003 (gmt 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.



Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved