Web Hosting Forum | Lunarpages

Author Topic: .htaccess file help  (Read 5196 times)

Offline stapel

  • Galactic Royalty
  • *****
  • Posts: 491
Re: .htaccess file help
« Reply #15 on: October 10, 2005, 08:48:46 AM »
Just look in your logs. The referers (yes, for some odd reason it's customarily mis-spelled that way) that are completely numeric and show very few image calls, relative to the total number of calls, are likely to be browser caches.

For instance, I have (in my processed-further-at-home stats) the following in this month's "referers" list:

      Total hits    Files Pageview             Bytes sent | Referrer URL
--------------------------------------------------------------------------------------
 2048170  91.42%  1860416   146648     7464423936  70.62% | http://www.purplemath.com/
   54519   2.43%    49185     6560      283924384   2.69% | http://purplemath.com/
   48162   2.15%    43465    45577     1345256448  12.73% | http://www.google.com/
 [snip a few lines]
    1024   0.05%      934       27        2775517   0.03% | http://64.233.167.104/
    1023   0.05%      983       25        2355767   0.02% | http://66.102.7.104/
     781   0.03%      745       13        1720053   0.02% | http://64.233.161.104/


Those last three, all-numeric, addresses correspond (with more details on another page) to calls from Google's cache.

If/when you see something similar in your records, follow that incoming link back to the originating site. If you end up looking at yourself in, say MSN's cache, then you might want to add that numeric IP to your hotlink exceptions list.

Eliz.

Offline Twizted

  • Jack of all Trades, Master of none
  • Pong! (the videogame) Master
  • *****
  • Posts: 25
    • DragonModz
Re: .htaccess file help
« Reply #16 on: October 10, 2005, 08:59:32 AM »
wow.. lol.... that honestly sounds like alot of stuff to keep up with from month to month..... since it can constantly change   :(

I did come up with a new images.....

Basically a advertisement for my site...

Although I am not sure this is going to be worth it ugh!

Offline Twizted

  • Jack of all Trades, Master of none
  • Pong! (the videogame) Master
  • *****
  • Posts: 25
    • DragonModz
Re: .htaccess file help
« Reply #17 on: October 10, 2005, 09:50:33 AM »
I have also moved the content of the .htaccess from the one in the root to one in the images directory of the gallery to stop breaking the entire site... since the main thing is people only linking to the gallery images.. I dont see someone linking my product images that much and even if they do those are fairly small images and its still and advertisment.. :P

Now... If I could just figure out a way to allow my domain access to them regardless of the referrer

Offline stapel

  • Galactic Royalty
  • *****
  • Posts: 491
Re: .htaccess file help
« Reply #18 on: October 10, 2005, 10:13:54 AM »
Quote from: Twizted
If I could just figure out a way to allow my domain access to them regardless of the referrer
What is the problem you're experiencing?

Eliz.

Offline Twizted

  • Jack of all Trades, Master of none
  • Pong! (the videogame) Master
  • *****
  • Posts: 25
    • DragonModz
Re: .htaccess file help
« Reply #19 on: October 10, 2005, 10:17:55 AM »
Well as you stated...... Google Cache breaks, MSN Cache breaks.... prople with there referrer info blocked(why you would do that is beyond me) breaks the site.... (only the gallery now....

Thing is I would like to allow access from my domain regardless of the referrer info being sent..... I would assume someone would have come up with a way to do this by now......

Offline stapel

  • Galactic Royalty
  • *****
  • Posts: 491
Re: .htaccess file help
« Reply #20 on: October 10, 2005, 11:08:59 AM »
As for the caches, like I said, put their IP addresses in your exceptions list, and you'll look good.

As for blank referers, it's my understanding that this can happen for utterly innocent reasons, such as the user surfing from behind a firewall, or when the user remembers your site and just types your URL directly into the browser (so he isn't coming from anywhere; he wasn't "referred" from anywhere).

You should probably allow blank referers.

Eliz.

. . . . .Hotlink protection of images with .htaccess
. . . . ..htaccess anti leech Confusion
. . . . .Stop and Prevent Hotlink Bandwidth Theft...

Offline Twizted

  • Jack of all Trades, Master of none
  • Pong! (the videogame) Master
  • *****
  • Posts: 25
    • DragonModz
Re: .htaccess file help
« Reply #21 on: October 10, 2005, 12:34:18 PM »
I am thinking about just forgetting this at this point lol.... seems like its more harmful than helpful.... It would be nice if there was a published list of IP's from Major search engines that use cache sites....

Offline TranzNDance

  • Princess of Naboo
  • Berserker Poster
  • *****
  • Posts: 11607
    • Thu Tu's Blog
Re: .htaccess file help
« Reply #22 on: October 10, 2005, 01:21:07 PM »
Well as you stated...... Google Cache breaks, MSN Cache breaks.... prople with there referrer info blocked(why you would do that is beyond me)
Just because you're ignorant about something, doesn't mean you have to have that kind of attitude. It makes me hesitant to help you having to explain everything when you could do some research on your own.
:whip: :love: :whip: :love: :whip: :love:

Offline Twizted

  • Jack of all Trades, Master of none
  • Pong! (the videogame) Master
  • *****
  • Posts: 25
    • DragonModz
Re: .htaccess file help
« Reply #23 on: October 10, 2005, 01:29:46 PM »
Calling me Ignorant is a rather rash way to speak to someone. I don't know what kind of attitude do you suppose I had? Because I just don't see where your coming from....

And believe me.... I HAVE researched this... And I have come up with very little to help me further which is why I came here to begin with.... I am not one to be spoon fed.... I do know how to use Google.... so assuming that I have not is insulting

And if this post comes off in a bad way, sorry... But I get rather livid when referred to as "Ignorant"

Offline TranzNDance

  • Princess of Naboo
  • Berserker Poster
  • *****
  • Posts: 11607
    • Thu Tu's Blog
Re: .htaccess file help
« Reply #24 on: October 10, 2005, 02:10:13 PM »
Well, I'm sorry, but that's how you came across. If you don't want to give that impression, check your attitude when people are trying to help you.
:whip: :love: :whip: :love: :whip: :love:

Offline stapel

  • Galactic Royalty
  • *****
  • Posts: 491
Re: .htaccess file help
« Reply #25 on: October 10, 2005, 02:22:10 PM »
Quote from: Twizted
Calling me Ignorant is a rather rash way to speak to someone.
"Ignorant" is not "stupid". There are many subjects on which I am "ignorant"; this only means that I don't know anything about them. Since nobody can know everything, each of us must necessarily be ignorant about something.

In any case, the poster was referring to your apparent attitude. You say you have no "attitude", but we can only go by what you post. If you don't want to be perceived as being rude, then perhaps you might want to re-phrase your posts. Telling the people who have offered to help you that they're "rash" and "insulting", and responding to their suggestions with posts along the lines of "I don't know why anybody would do such a thing", "it hardly seems worth my while", and "I'd have thought somebody would have done thus-and-such by this late date", is perhaps not the way to go about convincing people that you're aren't at least slightly hostile.

Quote from: Twizted
I HAVE researched this... And I have come up with very little...
Well, considering that I came up with the links I provided earlier on the first page of "hits" in my search, and since I doubt that my searching skills are anything out of the ordinary, it would seem reasonable to wonder, if helpful articles are so easily found, why we have to find them for you.

I'm sorry, but I don't think "TranzNDance" was entirely out of line here.

Please consider that most of your fellow posters aren't paid staff waiting to provide instant solutions for you, but are fellow LunarPages customers. Thank you.

Eliz.

Offline Twizted

  • Jack of all Trades, Master of none
  • Pong! (the videogame) Master
  • *****
  • Posts: 25
    • DragonModz
Re: .htaccess file help
« Reply #26 on: October 10, 2005, 03:29:51 PM »
OK.... I concede... What I said may have been perceived as bad but it was not intended as such it is just the way I typed it I guess...

The statement about why someone would do something was simply and observational statement which is formed from my opinion on the matter of hiding referrer information. nothing more...

Either way.... If I have offended, upset or simply PO'ed someone I am sorry.. I am simply frustrated with this to the point of giving up and I really REALLY don't want to do that....

I can understand your point on the searching also... but... a lot of what I seen did not make sense to me... I seen many tutorials on how to use htaccess with mod_rewrite to protect your pictures but they were all generic and a kill all kinda deal which I could already do within the cPanel... I was looking for more advanced usage of it with some explanation on how it works...

If nothing else comes of the thread I will continue as I have been trying to find the solution... Just don't walk off mad at me due to a miscommunication...

Offline Aryos

  • Trekkie
  • **
  • Posts: 18
    • Politically Incorrect
Re: .htaccess file help
« Reply #27 on: November 24, 2005, 02:39:07 PM »
I'm sending the .htaccess code I'm using to stop hotlinking, yet allow people to be browser-referred to my domain, in case it helps:

Code: [Select]
# Linking Control - allow only blank or listed referers
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://(www\.)?pinc.gr/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?friendly_domain.com/.*$ [NC]
RewriteRule \.(bmp|cfg|gif|ini|jpg|png|rar|tar.gr|tgz|tpl|wsz|zip|pl|cgi|wma|mp3|asf|swf|rm|rma|avi)$ - [F]
FOR THE WORLD YOU ARE JUST SOMEONE, BUT FOR SOMEONE YOU MAY BE THE WHOLE WORLD

 

Share |