Web Hosting Forum | Lunarpages

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

Offline Twizted

  • Jack of all Trades, Master of none
  • Pong! (the videogame) Master
  • *****
  • Posts: 25
    • DragonModz
.htaccess file help
« on: October 09, 2005, 02:13:49 PM »
I am not sure this is the right forum for this but it sounded right...

Anyway.... I am trying to fix up my sites main htaccess located in the root directory to not allow hotlinking of my images on my website...

I know that I can set hotlink protection in the cPanel, But.... when I set a redirect to a image "thief.gif" if does not show.... on the offending site it only shows a Red X so it must be blocking the thief.gif file also.... I want to show this thief.gif image to "fight back" so how can I get this to work?


Offline TranzNDance

  • Princess of Naboo
  • Berserker Poster
  • *****
  • Posts: 11607
    • Thu Tu's Blog
Re: .htaccess file help
« Reply #1 on: October 09, 2005, 04:27:45 PM »
Actually, it's unnecessary to show such an image, and innocent people can see that image. I see such images when I disable sending referer data from my browser. So although a site is allowed to see those images, I see the "thief" image when I should not be seeing it.
: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 #2 on: October 09, 2005, 04:52:57 PM »
Although I am not using an offensive image I can see your point

But even if I didnt use the image you still wouldnt see the intended images... and I want those who try to link to see that we will not stand for hotlinking.....

I did find a way to get it to work... I renamed the thief.gif to thief.gif2 which still parses in IE and Mozilla as a gif.... thus it makes it around the .htaccess and shows up properly...

Its just the main thing I am trying to thwart are those who would seek to steal my sites bandwidth either unwittingly or otherwise....

So those who have there browser set to not send referer info are not a big concern since they wouldnt see the intended image either way using this method

Also you mention "Innocent People" which is kinda emplying that I concider them as anything but innocent... The viloators are those who post the content or site who use the content agains copyright law... If they leave such images posted they are the ones causing the innocent by-stander to see the images...

« Last Edit: October 09, 2005, 05:01:14 PM by Twizted »

Offline TranzNDance

  • Princess of Naboo
  • Berserker Poster
  • *****
  • Posts: 11607
    • Thu Tu's Blog
Re: .htaccess file help
« Reply #3 on: October 09, 2005, 05:45:28 PM »
The "innocent" people are the ones who visit your site with referers disabled. They will see the images on your site if you don't set up your htaccess file correctly. So it would look like your site is the thief. Get it?
: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 #4 on: October 09, 2005, 05:48:52 PM »
Its setup to allow linking from any of my domain/subdomain's and two other off site domains... but I am not sure of anyway to make it so that people with there browser referer turned off to bypass this.... Care to enlighten me please?

Offline Twizted

  • Jack of all Trades, Master of none
  • Pong! (the videogame) Master
  • *****
  • Posts: 25
    • DragonModz
Re: .htaccess file help
« Reply #5 on: October 09, 2005, 06:03:01 PM »
I was going to test this but I cant seem to figure out how to turn off referer's in IE or Firefox.....

Lupine1647

  • Guest
Re: .htaccess file help
« Reply #6 on: October 09, 2005, 06:13:35 PM »
Security software such as Norton remove the refering information.

Offline Twizted

  • Jack of all Trades, Master of none
  • Pong! (the videogame) Master
  • *****
  • Posts: 25
    • DragonModz
Re: .htaccess file help
« Reply #7 on: October 09, 2005, 06:19:42 PM »
I dont have norton either.. lol...

My site is http://www.dragonmodz.net

Gallery is http://gallery.dragonmodz.net

if you wanna see if it breaks....

Offline TranzNDance

  • Princess of Naboo
  • Berserker Poster
  • *****
  • Posts: 11607
    • Thu Tu's Blog
Re: .htaccess file help
« Reply #8 on: October 09, 2005, 06:25:52 PM »
When I go to your site with referer-sending disabled, I see a nasty message accusing me of being a thief. :P

Use the web developer toolbar extension for Firefox to get the option to disable referer sending so you can see what some people will see.
: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 #9 on: October 09, 2005, 06:34:13 PM »
ok..... I installed that and checked it out.... question is why does it not break all the images? and how do I get around that?

Offline Twizted

  • Jack of all Trades, Master of none
  • Pong! (the videogame) Master
  • *****
  • Posts: 25
    • DragonModz
Re: .htaccess file help
« Reply #10 on: October 09, 2005, 09:01:12 PM »
No suggestions for how to remedy the problem of ppl with the referer info turned off?

If I have to I can revise the text to inform them of this problem. but I am sure there is a way to fix that yes? I hope.... :?

Offline stapel

  • Galactic Royalty
  • *****
  • Posts: 491
Re: .htaccess file help
« Reply #11 on: October 09, 2005, 10:13:40 PM »
Quote from: Twizted
Its just the main thing I am trying to thwart are those who would seek to steal my sites bandwidth....I concider them as anything but innocent.
Suppose a user has done a search, and your site pops up in the hits. He tries to access your site, but there is some sort of temporary hiccup between his computer and your site's server. So, until his connection is healthy again, he figures he'll take a look at your site in Google's cache.

But Google frequently doesn't cache a site's images; instead, these are commonly called directly from the original site.

Would you rather this user read your (cached) text, and look forward to visiting your site when his connection is "good" again; or would you rather he see that you're accusing him of being a dirty rotten thief, and you want him to go away?

When the other poster referred to "innocent parties", I don't think he was trying to make excuses for thievery. I think he was trying to point out a potential problem.

Just FYI...

Eliz.

Offline Twizted

  • Jack of all Trades, Master of none
  • Pong! (the videogame) Master
  • *****
  • Posts: 25
    • DragonModz
Re: .htaccess file help
« Reply #12 on: October 10, 2005, 08:08:45 AM »
ugh.....
so...... what is a way to use this method without completely crippeling my site or what ever.....

This is a problem that I do need to address... how else would I do it?

Offline stapel

  • Galactic Royalty
  • *****
  • Posts: 491
Re: .htaccess file help
« Reply #13 on: October 10, 2005, 08:24:33 AM »
You can use hotlink protection, and, as much as possible (by looking through your logs, etc), let the search-engine caches "through" to serve up the right images. Of course, they're always going to be using new servers, so you're always going to be playing catch-up, but that's okay. Just check once a month or so, and add whatever new servers you're seeing to the hotlink-protection exception list.

You don't want to offend potential visitors when they view your site in Google's cache. Nor, I would hope, would you want to offend innocent third parties on, say, some forum who view a message posted by a hotlinker.

(For instance, suppose some jerk posts a hotlink to one of your images in his forum posting. The bum who is stealing your bandwidth deserves reprimand, but the grandmother who's helping her grandkids navigate the forum doesn't want to see an obscene picture with "F--- YOU, THIEF" written across the naked guy's whizz-whang.)

So do use the hotlink protection, but use a "nicer" image for it. The following is mine:

. . . . .

This graphic makes clear to Grandma and the kids that whatever the guy is trying to do probably isn't appropriate (and allows me to ask the forum admin to remove the link, without having caused him any undue trouble), gives the visitors viewing me in Google's cache an incentive to come back later for "the rest of the story", and doesn't offend anybody (except maybe the bum who wanted to show off how smart he is, and now he looks like a moron).

Hope that helps a bit.

Eliz.

Offline Twizted

  • Jack of all Trades, Master of none
  • Pong! (the videogame) Master
  • *****
  • Posts: 25
    • DragonModz
Re: .htaccess file help
« Reply #14 on: October 10, 2005, 08:32:39 AM »
I can see your point.....

I guess I can make a smaller image... the only offensive thing in mine was the end "Oh yeah Your breath stinks" lol... well.... other than the large flashing THIEF at the top.... but..... I wanted to make a point...... oh well..... Back to the drawing board err... Paint Shop Pro that is :P

now sure how I will be able to address the proper address for the cacheing search engines though?

 

Share |