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
Old 11-05-2004, 11:14 PM .htaccess
nick89's Avatar
Super Talker

Posts: 136
Location: Brisbane, Australia
Trades: 0
How might i configure .htaccess so that files can only be accessed when refferd by a specific website. I assume ti works similarly to hotlink protection.
nick89 is offline
Reply With Quote
View Public Profile Visit nick89's homepage!
 
 
Register now for full access!
Old 11-14-2004, 08:18 AM
vivekar's Avatar
Webmaster Talker

Posts: 612
Trades: 0
Code:
RewriteEngine on

SetEnvIfNoCase Referer "^http://www.google.com/" BadReferrer

order allow,deny
deny from 216.109.126.*
deny from env=BadReferrer
allow from all

RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://www.google.com/
RewriteRule /* http://www.yoursite.com/restricted_url.html [R,L]
__________________

Please login or register to view this content. Registration is FREE
(Active since 2003) |
Please login or register to view this content. Registration is FREE
vivekar is offline
Reply With Quote
View Public Profile Visit vivekar's homepage!
 
Old 11-16-2004, 06:47 AM
nick89's Avatar
Super Talker

Posts: 136
Location: Brisbane, Australia
Trades: 0
can you possibly explain this?

thank you
nick89 is offline
Reply With Quote
View Public Profile Visit nick89's homepage!
 
Reply     « Reply to .htaccess
 

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.18018 seconds with 12 queries