Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & phranque

Message Too Old, No Replies

htaccess help needed for blocking outside referers

how can i let only people who visit my site download files and not leechers



10:02 pm on Sep 10, 2003 (gmt 0)

Inactive Member
Account Expired


ive been checking forums and htaccess help sites, but im not having much luck. i host a mirror for a friend's website. the user goes to www.<website>.com and is randomly taken to a mirror.

now my question is how once they come to my mirror, how do i only let people who actually visit the website download files and not people who link on other websites?


10:22 pm on Sept 10, 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]!

This thread [webmasterworld.com] might give you some ideas. It discusses code to serve alternate images to outside referers (hotlinkers), and can be adapted to other uses.

Ref: Introduction to mod_rewrite [webmasterworld.com]