LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 03-28-2006, 11:28 AM   #1
The00Dustin
Member
 
Registered: Jan 2006
Posts: 70

Rep: Reputation: 15
no http_referer apache mod_rewrite condition?


I understand how to create a 404 or a redirect when the http_referer is an untrusted site, but I would like to do this when no http_referer or a blank http_referer is returned. Can this be done? TIA
 
Old 03-28-2006, 01:45 PM   #2
zeitounator
Member
 
Registered: Aug 2003
Location: Montpellier, France, Europe, World, Solar System
Distribution: Debian Sarge, Fedora core 5 (i386 and x86_64)
Posts: 262

Rep: Reputation: 30
No time to check in depth but this should pretty much do it:
Code:
RewriteCond %{HTTP_REFERER} =""
RewriteRule <some rule to apply>
 
Old 03-28-2006, 05:51 PM   #3
The00Dustin
Member
 
Registered: Jan 2006
Posts: 70

Original Poster
Rep: Reputation: 15
You are right. The way I was doing that included the blank referer and the website referer. I thought it was a "staging" line or something. I tried commenting it out and voila, all was as I wished. Thanks.
 
  


Reply



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 2.0 | mod_rewrite | Can you group rules under one condition? ganz_friedrich Linux - Software 0 02-15-2006 02:46 PM
Apache: no mod_rewrite module? psychobyte Linux - Networking 1 05-07-2005 12:43 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:10 AM.

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