osCmax v2.5 User Manual
Results 1 to 2 of 2

prevent hotlinking of images

This is a discussion on prevent hotlinking of images within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; prevent your product images from being directly published on other sites. open up your .htaccess page and place this code ...

      
  1. #1
    Senior Member blackhawk's Avatar
    Join Date
    Aug 2009
    Location
    indiana
    Posts
    640
    Blog Entries
    1
    Rep Power
    27


    Lightbulb prevent hotlinking of images

    prevent your product images from being directly published on other sites. open up your .htaccess page and place this code on top...

    Code:
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://mysite.com/ [NC]
    RewriteRule \.(gif|jpg|wmv|mp3|flv|png)$ - [F]
    Please test first. may not work for you. but then again it might. if you have more file extensions just as it to the RewriteRule...

  2. #2
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Exclamation Re: prevent hotlinking of images

    For those of us who use hosting with cPanel, you are STRONGLY advised to implement hotlink protection via the interface and not manually "mess with" .htaccess
    Hosting plans with installation, configuration, contributions, support and maintenance.

Similar Threads

  1. [osCmax V2.0.25] How to prevent order numbers from being skipped?
    By Shortbus in forum osCMax v2 Features Discussion
    Replies: 3
    Last Post: 02-08-2011, 04:23 PM
  2. Sam's Remove & Prevent duplicate content with the canonical tag
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 03-23-2010, 10:10 AM
  3. Prevent automatic registration?
    By countdooku in forum osCmax v2 Installation issues
    Replies: 27
    Last Post: 11-22-2009, 05:16 AM
  4. Prevent SE indexing of enitre catalog?
    By alexandermorris in forum osCmax v2 Customization/Mods
    Replies: 3
    Last Post: 02-26-2008, 01:51 PM
  5. How to prevent out of stock items becoming inactive?
    By ScaleCreep in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 02-15-2005, 08:37 PM

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
  •