Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Apr 2011
    Posts
    81
    Member #
    27344
    Liked
    3 times
    I am trying to include this code in my .htaccess file for stopping hotlinking but i am having the image angryman.jpeg, indicated below, replacing some of my images. Can you please indicate what is the problem?

    Thank You for your help.

    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com/.*$ [NC]
    RewriteRule \.(gif|jpg)$ http://www.mydomain.com/angryman.jpeg [R,L]

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,748
    Member #
    5580
    Liked
    720 times
    I'm not an .htaccess expert ...
    But I did find this:
    http://altlab.com/htaccess_tutorial.html

    maybe that might give you some ideas.


    .
    onlinespider likes this.


  4. #3
    Member
    Join Date
    Apr 2011
    Posts
    81
    Member #
    27344
    Liked
    3 times
    Dear Sir,

    You helped me solve my problem. Thanks a lot for your support. That was a very good site for both coding and testing of hotlinking.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 05:42 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com