Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Restrict Access to Local Host Only
Old 05-17-2009, 08:11 PM Restrict Access to Local Host Only
Junior Talker

Posts: 1
Name: Ben Eckenroed
Trades: 0
I have a folder I set up on the server. PDF files will be uploaded to it for use with my business. However, I don't want anybody being able to access them unless they click on a link from my website. I was thinking I would use htaccess so that I could only allow visitors that came from a link on my site, but I can't seem to get it working. I have browsed hundreds of pages over hours and hours and can't seem to make any headway.

I have a request into my host to see if they have something funky on their servers. I have tried various variations of

Quote:
# deny all except those indicated here
<Limit GET POST PUT>
order deny,allow
deny from all
allow from domain.com
</Limit>
But I get an access denied no matter how I access the files (even when clicking on a link from the site). Any thoughts?
RealtorBen is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-23-2009, 05:34 PM Re: Restrict Access to Local Host Only
Extreme Talker

Posts: 181
Name: David Jackson
Trades: 0
why not restrict access using php then you can create and administer access accounts

a much better solution
__________________

Please login or register to view this content. Registration is FREE
davidj is offline
Reply With Quote
View Public Profile
 
Old 05-23-2009, 06:39 PM Re: Restrict Access to Local Host Only
Average Talker

Posts: 17
Name: Jeremy
Location: WV
Trades: 0
Your htaccess file is blocking people based on the hostname of their IP, not the referring URL. Google "htaccess referrer" and you'll find your answer
AdscendJeremy is offline
Reply With Quote
View Public Profile Visit AdscendJeremy's homepage!
 
Reply     « Reply to Restrict Access to Local Host Only
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.58029 seconds with 12 queries