24, July 2008

Another htaccess question - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web hosting talk  >  Configuring your server  >  Apache web server
Topic: Another htaccess question
« previous next »
Pages: [1] Print

Author Topic: Another htaccess question  (Read 786 times)
I am a fanatic. So?
*****
Gender: Female
Posts: 599
3727 credits
Members referred : 2



« on: Aug 26, 2006, 12:00:30 AM »

I give up. Looked all over and nothing is working.

I currently have this code:
Quote
SetEnvIfNoCase Referer "^http://www.yourmessageconsultant.com/" locally_linked=1
SetEnvIfNoCase Referer "^http://www.yourmessageconsultant.com$" locally_linked=1
SetEnvIfNoCase Referer "^http://yourmessageconsultant.com/" locally_linked=1
SetEnvIfNoCase Referer "^http://yourmessageconsultant.com$" locally_linked=1
SetEnvIfNoCase Referer "^http://www.helpforwebbeginners.com/" locally_linked=1
SetEnvIfNoCase Referer "^http://www.helpforwebbeginners.com$" locally_linked=1
SetEnvIfNoCase Referer "^http://helpforwebbeginners.com/" locally_linked=1
SetEnvIfNoCase Referer "^http://helpforwebbeginners.com$" locally_linked=1
SetEnvIfNoCase Referer "^http://www.craftytips.com/" locally_linked=1
SetEnvIfNoCase Referer "^http://www.craftytips.com$" locally_linked=1
SetEnvIfNoCase Referer "^http://craftytips.com/" locally_linked=1
SetEnvIfNoCase Referer "^http://craftytips.com$" locally_linked=1

SetEnvIfNoCase Referer "^$" locally_linked=1
<FilesMatch "\.(gif|png|jpe?g)$">
  Order Allow,Deny
  Allow from env=locally_linked
</FilesMatch>

What I want to do is to allow folks to hotlink to my advertising banner. I've tried offering it whenever anyone tries to link. I've created a directory called Share with an htaccess of no referrer (don't remember code got it off some forum). None worked so I went back to original.

What am I missing?

Thanks again guys for all the help.
« Last Edit: Aug 26, 2006, 12:59:38 AM by YMC »

www.yourmessageconsultant.com Visit through proxy, providing online content and printed marketing materials.
www.helpforwebbeginners.com Visit through proxy, Tutorials and how to's for new  webmasters.
www.CraftyTips.com Visit through proxy, a unique Arts & Crafts Directory
www.nocans.com Visit through proxy - Pet Food Recipe Site
www.petsiteguides.com Visit through proxy - A New Pet Directory

Last blog : What To Advertise
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7975
40807 credits
Members referred : 3



« Reply #1 on: Aug 26, 2006, 11:47:37 AM »

Can you please describe what exactly you want to do?

If you want to allow hotlinking then you don't need any .htaccess rule.

Otherwise if you want to allow hotlinking only from specific sites then you propably need to work this out.

Let me know so we can see how it works Smiley

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
I am a fanatic. So?
*****
Gender: Female
Posts: 599
3727 credits
Members referred : 2



« Reply #2 on: Aug 27, 2006, 04:36:53 PM »

What I am hoping to do is to allow hotlinking only to my advertising banner, but no other images on any of the three sites.

The banner is for the crafty site. I had thought about making a rule offer it when someone tries to hotlink to anything on the crafty site, but that didn't work - at least what I tried. Protection of the images on the crafty site is more important than the other two as most of the pictures on the site are going to belong to the crafters.

www.yourmessageconsultant.com Visit through proxy, providing online content and printed marketing materials.
www.helpforwebbeginners.com Visit through proxy, Tutorials and how to's for new  webmasters.
www.CraftyTips.com Visit through proxy, a unique Arts & Crafts Directory
www.nocans.com Visit through proxy - Pet Food Recipe Site
www.petsiteguides.com Visit through proxy - A New Pet Directory

Last blog : What To Advertise
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7975
40807 credits
Members referred : 3



« Reply #3 on: Aug 27, 2006, 05:08:08 PM »


Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
I am a fanatic. So?
*****
Gender: Female
Posts: 599
3727 credits
Members referred : 2



« Reply #4 on: Aug 27, 2006, 06:10:31 PM »

That site had much better detail than anything else I've looked at. Still not working. Will have to look into this more. I suspect part of the problem is that it is an add-on domain. I've even modified the htaccess for the add-on, still doesn't change. Might be better to start over from scratch instead of modifying what I already have.

www.yourmessageconsultant.com Visit through proxy, providing online content and printed marketing materials.
www.helpforwebbeginners.com Visit through proxy, Tutorials and how to's for new  webmasters.
www.CraftyTips.com Visit through proxy, a unique Arts & Crafts Directory
www.nocans.com Visit through proxy - Pet Food Recipe Site
www.petsiteguides.com Visit through proxy - A New Pet Directory

Last blog : What To Advertise
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7975
40807 credits
Members referred : 3



« Reply #5 on: Aug 27, 2006, 06:28:26 PM »

If you are redirecting domains, then it wont work any way, because the redirect does not hold the referer information too.

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
I am a fanatic. So?
*****
Gender: Female
Posts: 599
3727 credits
Members referred : 2



« Reply #6 on: Aug 27, 2006, 08:46:26 PM »

Shouldn't be any redirecting with this. Probably more problems because of the way cPanel treats add-on domains like subdomains.

www.yourmessageconsultant.com Visit through proxy, providing online content and printed marketing materials.
www.helpforwebbeginners.com Visit through proxy, Tutorials and how to's for new  webmasters.
www.CraftyTips.com Visit through proxy, a unique Arts & Crafts Directory
www.nocans.com Visit through proxy - Pet Food Recipe Site
www.petsiteguides.com Visit through proxy - A New Pet Directory

Last blog : What To Advertise
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=3821
Tags : domains cpanel Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web hosting talk  >  Configuring your server  >  Apache web server
Topic: Another htaccess question
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Jul 24, 2008, 11:31:29 PM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 35.717
Total Topics: 7.379
Total Members: 3.711
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: Asimina

41 Guests, 3 Users online :

11 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.