Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: using http.conf rules in .htaccess

  1. #1
    Aziz's Avatar
    Aziz is offline no investment, no glory
    Join Date
    May 2009
    Location
    IL
    Posts
    736
    Thanks
    588
    Thanked 243 Times in 168 Posts

    Question using http.conf rules in .htaccess

    Hello,

    I am wanting to add some http.conf rules to block users from downloading or ripping website content/images.

    Now my host does not allow editing http.conf because it's a shared hosting plan BUT they said I can do it via .htaccess - so any ideas how to add them?

    I tried adding the lines without any special markup but that rendered internal server error.

    do I have to wrap the code in certain tags? or tweak it to work in .htaccess?

    Help is appreciated

    Regards,
    Aziz

  2. #2
    Sami4u's Avatar
    Sami4u is offline Butterflies Forever
    Join Date
    Sep 2009
    Location
    USA
    Posts
    1,407
    Thanks
    670
    Thanked 292 Times in 220 Posts
    Hi,

    I am just a dummy. But how are you going to stop the Win7 snipping tool from a .htaccess?

    I have seen a site site that have stopped the right click but you could still save the photo.

    Is the headache worth it?

    Sami
    Current Celebrity Gossip Movies & More TV Site
    Find out how I'm able to get up to 420 backlinks for month, by spending 30 seconds per day...all for FREE! - Click Here

  3. #3
    Andy101's Avatar
    Andy101 is offline Code Otaku
    Join Date
    Aug 2009
    Location
    Kanazawa
    Posts
    1,177
    Thanks
    163
    Thanked 297 Times in 224 Posts
    I don't think you can stop it, but only have some javascript that tries to disable the right click of a mouse.

    .htaccess can be used to stop the directory listing showing up in a browser or to detect hotlinking from another website. But once an image is displayed in a browser, it is on the visitors computer.

  4. #4
    TopDogger's Avatar
    TopDogger is online now Über Hund
    Join Date
    Jan 2009
    Location
    Hellfire, AZ
    Posts
    2,946
    Thanks
    341
    Thanked 883 Times in 671 Posts
    If you are referring to preventing hotlinking to images, there are several ways to do this using the .htaccess file. This doesn't prevent anyone from manually downloading an image with a right click.

    Cutting down on bandwidth theft (offsite image grabs) using mod_rewrite and .htaccess
    "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." -- Benjamin Franklin


  5. #5
    Aziz's Avatar
    Aziz is offline no investment, no glory
    Join Date
    May 2009
    Location
    IL
    Posts
    736
    Thanks
    588
    Thanked 243 Times in 168 Posts
    I am more wanting to prevent the usage of ripping softwares to copy websites (like HTTrack)

  6. #6
    Will.Spencer's Avatar
    Will.Spencer is offline Retired
    Join Date
    Dec 2008
    Posts
    5,033
    Blog Entries
    1
    Thanks
    1,010
    Thanked 2,327 Times in 1,258 Posts
    Quote Originally Posted by Aziz View Post
    I am more wanting to prevent the usage of ripping softwares to copy websites (like HTTrack)
    Then Bot Trap is what you want. Take a look at Block Web Content Scrapers and Downloaders
    Submit Your Webmaster Related Sites to the NB Directory
    I swear, by my life and my love of it, that I will never live for the sake of another man, nor ask another man to live for mine.

  7. Thanked by:

    iowadawg (31 October, 2010)

  8. #7
    Aziz's Avatar
    Aziz is offline no investment, no glory
    Join Date
    May 2009
    Location
    IL
    Posts
    736
    Thanks
    588
    Thanked 243 Times in 168 Posts
    Quote Originally Posted by Will.Spencer View Post
    Then Bot Trap is what you want. Take a look at Block Web Content Scrapers and Downloaders
    thanks a lot man, I will definitely check it out

  9. #8
    iowadawg's Avatar
    iowadawg is online now Free Cell Champion
    Join Date
    May 2010
    Location
    Not in Texas
    Posts
    2,015
    Blog Entries
    4
    Thanks
    165
    Thanked 353 Times in 302 Posts
    Get nasty with those who would hotlink to your images and download pages.

    I check my site stats all the time, plus do searches on certain pages and images.

    I find a site using my images and linking to certain pages?

    Then I get nasty!
    Oh, this is really fun to do to those who post on forums, using your direct links to images.

    I rename the affected images and change the names on my site.
    Then the original image name?
    I hunt for shall we say some nasty images and put them in.

    Same with certain pages.
    Rename the pages.
    The original named page?
    A new page with again, some nasty stuff!

    But then, maybe it is just me that loves to do this.

  10. #9
    Aziz's Avatar
    Aziz is offline no investment, no glory
    Join Date
    May 2009
    Location
    IL
    Posts
    736
    Thanks
    588
    Thanked 243 Times in 168 Posts
    Quote Originally Posted by iowadawg View Post
    Get nasty with those who would hotlink to your images and download pages.

    I check my site stats all the time, plus do searches on certain pages and images.

    I find a site using my images and linking to certain pages?

    Then I get nasty!
    Oh, this is really fun to do to those who post on forums, using your direct links to images.

    I rename the affected images and change the names on my site.
    Then the original image name?
    I hunt for shall we say some nasty images and put them in.

    Same with certain pages.
    Rename the pages.
    The original named page?
    A new page with again, some nasty stuff!

    But then, maybe it is just me that loves to do this.
    hahaha that's a really good idea , but hotlinking is not a problem, what concerned me is the downloading for offline usage etc

  11. #10
    Hellas's Avatar
    Hellas is offline Very Unusual Member
    Join Date
    Dec 2008
    Location
    Bosnia
    Posts
    1,051
    Thanks
    214
    Thanked 292 Times in 205 Posts
    Quote Originally Posted by iowadawg View Post
    Get nasty with those who would hotlink to your images and download pages.

    I check my site stats all the time, plus do searches on certain pages and images.

    I find a site using my images and linking to certain pages?

    Then I get nasty!
    Oh, this is really fun to do to those who post on forums, using your direct links to images.

    I rename the affected images and change the names on my site.
    Then the original image name?
    I hunt for shall we say some nasty images and put them in.

    Same with certain pages.
    Rename the pages.
    The original named page?
    A new page with again, some nasty stuff!

    But then, maybe it is just me that loves to do this.
    I actualy recently started to encourage users to hotlink my images. Saw this thing from Will.

    Across The Planet

    right click on any content image, you'll get the point .

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 6
    Last Post: 25 June, 2010, 19:59 PM
  2. Ridiculous Rules
    By ruziko in forum Community Building
    Replies: 20
    Last Post: 15 April, 2010, 00:00 AM
  3. Marketplace Rules
    By Will.Spencer in forum Marketplace
    Replies: 0
    Last Post: 19 January, 2010, 15:31 PM
  4. Replies: 12
    Last Post: 27 August, 2009, 05:58 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •