LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-15-2003, 12:38 AM   #1
Wonko the Sane
LQ Newbie
 
Registered: Nov 2002
Location: Raleigh, NC
Distribution: Gentoo
Posts: 20

Rep: Reputation: 0
Apache (mod_rewrite) question


I've been trying to cut down on hotlinking on my forum, and have been trying to get this to work in an .htaccess file, i know this should go into the httpd.conf file, but this isn't my webserver so i can't do that


here's what i've got

Quote:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?shinraonline\.com/.*$ [NC]
RewriteCond %{HTTP_FORWARDED} ^http://(www\.)?shinraonline\.com/board/attatchment\.php.*$ [NC]
RewriteRule ^http://(www\.)?shinraonline\.com/board/attatchment\.php.$ http://www\.shinraonline\.com/misc/klael\.jpg [R,L]
only it's not doing a thing, am I missing something stupid, or what's going on

thanks in advance

Rob

Last edited by Wonko the Sane; 06-15-2003 at 12:39 AM.
 
Old 06-15-2003, 12:55 PM   #2
Qzukk
Member
 
Registered: Jun 2003
Posts: 132

Rep: Reputation: 15
Not sure if this is directly related to your problem, but when doing something like this, keep in mind that some browsers and "anonymizers" can be configured to not report the referrer to your webbrowser. (this would be the !^$ case you check first... "if its not empty, then continue".) Set apache to log referrer information and check your logs to see if the system you are testing this from is reporting it or not.
 
  


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
Apache mod_rewrite problems Spudley Programming 2 12-01-2005 02:10 PM
enable mod_rewrite in apache 1.3.9 robertngo Linux - Software 4 07-18-2005 03:02 AM
Apache Mod_rewrite help! soulsniper Linux - Software 0 01-16-2005 05:23 PM
Apache:mod_rewrite MadMikie Linux - Software 0 08-03-2004 07:33 AM
Apache and mod_rewrite notsoevil Linux - General 0 01-23-2002 01:39 PM


All times are GMT -5. The time now is 03:44 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration