LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-22-2006, 10:04 PM   #1
Seventh
Member
 
Registered: Dec 2003
Location: Boston, MA
Distribution: Redhat / Debian
Posts: 269

Rep: Reputation: 30
.htaccess question


Apologies if this is the wrong forum, it's more of apache question but this seemed the best spot.

I have a media mod on a forum that I run on RHEL9, that allows users to upload MP3 files. The mod itself stores the files in a folder called media under my forum root.

I'd like to set it with .htaccess (kind of like an image-stealing prevention method) so that people can't hotlink myurl/media/whatever.mp3 on other sites - basically so that it will only accept the connection if the referrer is my domain.

Unfortunately I'm very new to .htaccess and apache, and have no idea how to accomplish this. Any advice would really be appreciated.
 
Old 07-22-2006, 11:31 PM   #2
KimVette
Senior Member
 
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Rep: Reputation: 46
http://kim.biyn.com/Linux/how_to_pre...ng_mod_rewrite

Follow that howto, modify as needed (for your domain, the extensions you wish to protect, etc.) and implement.

enjoy.
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
.htaccess allow question?? eagletalontim Linux - Security 4 04-23-2006 01:07 AM
.htaccess question kidestranged Linux - Software 0 03-08-2005 11:57 AM
.htaccess Question tommytomato Linux - Security 2 06-14-2004 11:37 AM
.htaccess question djthewombat Linux - General 1 10-21-2002 08:24 AM
htaccess question Legolas Linux - Security 0 08-24-2001 01:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration