LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-14-2006, 05:36 PM   #1
Maje
LQ Newbie
 
Registered: May 2006
Posts: 4

Rep: Reputation: 0
.htaccess problem?


Hi,

This code is works..
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?domain.com.*$ [NC]
RewriteRule ^.+\.(jpg|jpeg|png|gif)$ - [NC,F,L]

But i want to protect my swf files not worked..

RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?domain.com.*$ [NC]
RewriteRule ^.+\.(jpg|swf|jpeg|png|gif)$ - [NC,F,L]

Swf files do not open my site i write 2. code.

What can i do? What will i write .htaccess file?

Thank you..
 
Old 06-16-2006, 02:38 AM   #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
Does this always happen or does it happen only when you are trying to link the file on an insecure connection (http) while browsing the site from a secure one (https) ?

While you are on an https connection, referers are not sent if you link through http. Make sure you always link your media through https, it should work.
 
  


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
Problem with htaccess? Jake_B Linux - Networking 6 01-21-2006 03:53 PM
Strange htaccess problem (it ignored!) belorion Linux - Software 2 03-01-2005 02:32 PM
.htaccess problem lothario Linux - Software 0 01-22-2005 05:20 AM
.htaccess problem Ramon_E Linux - Security 3 10-20-2003 07:32 PM
.htaccess problem mwmethe Linux - Security 1 08-31-2002 12:32 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:49 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