SunQuest
           Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Try It Free
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old October 31st, 2001, 03:59 PM
cka cka is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Location: Ontario, Canada
Posts: 498 cka User rank is Corporal (100 - 500 Reputation Level)cka User rank is Corporal (100 - 500 Reputation Level)cka User rank is Corporal (100 - 500 Reputation Level)cka User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 12
More rewrite problems

Alright, I have a ruleset setup to deny remote linking of jpegs and gifs for my server. Unfortunately, (and I think this only applies to webcaching proxies since I see the images fine) some of, if not all the time the only image displayed is the one I had set up to display when someone remotely links our images. This applies to all the images on the site for some reason...

Can anyone help me clear this up?

(this is the ruleset from my httpd.conf)
RewriteEngine on
#RewriteCond %{HTTP_REFERER} ^$ [OR]
# allow remote linking from *.fighters.net, but nowhere else
RewriteCond %{HTTP_REFERER} !^http://(.*)fighters\.net/.*$ [NC]
# rewrite the gif or jpeg call with this handy png file
RewriteRule .*\.([gif|jpe?g]+)$ http://www.fighters.net/linkisbad.png [NC]
__________________
To alcohol! The cause of, and solution to, all of life's problems. -- Homer Simpson

Reply With Quote
  #2  
Old November 1st, 2001, 01:25 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
You need to change your RewriteRule to be:

# External redirect
RewriteRule .*\.([gif|jpe?g]+)$ http://www.fighters.net/linkisbad.png [R,L]

# Internal redirect
RewriteRule .*\.([gif|jpe?g]+)$ /server/path/to/no/symlink/linkisbad.png [T=image/png,L]

Reply With Quote
  #3  
Old November 1st, 2001, 01:34 AM
cka cka is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Location: Ontario, Canada
Posts: 498 cka User rank is Corporal (100 - 500 Reputation Level)cka User rank is Corporal (100 - 500 Reputation Level)cka User rank is Corporal (100 - 500 Reputation Level)cka User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 12
Alright, thanks.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > More rewrite problems


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway