Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    May 2003
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Hotlinking Script with IE

    The script to prevent hotlinking doesn't seem to work in Internet Explorer, but does fine in Netscape.

    Ideas?

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    the Netherlands
    Posts
    215
    Thanks
    0
    Thanked 0 Times in 0 Posts
    What script?
    Show some code

    Mzzl, Chris
    My Website
    010100010011110101110100011011110111000001101000

  • #3
    New to the CF scene
    Join Date
    May 2003
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?www.thefurreddimension.net/.*$ [NC]
    RewriteRule \.(gif|jpg)$ - [F]

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    the Netherlands
    Posts
    215
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I use almost the same code and I think I know what the problem is...

    If an image is viewed correctly (from your site, not hotlinked) it is cached and if you enter the URL to the picture in the addressbar it reads it from the cache.

    That's all I know, I'm afraid

    Mzzl, Chris
    My Website
    010100010011110101110100011011110111000001101000

  • #5
    Regular Coder Feyd's Avatar
    Join Date
    May 2002
    Location
    Los Angeles, CA Maxim: Subvert Society
    Posts
    404
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Additionally, this code is not browser-code. This is htaccess, this has absolutely nothing in the world to do with the browser looking at it, what the code sends are server commands. The browser is too 'dumb' to even recognize that (unless there are directives in there being sent to the brower).

    Also, use this for your domain name instead of what you have (it is more workable and 'smarter')

    RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*thefurreddimension.*$ [NC]

    You also need to set an entry up for your site by IP address.

    RewriteCond %{HTTP_REFERER} !^http://your.ip.add.ress.*$ [NC]
    Moderator, Perl/CGI Forum
    shadowstorm.net - subvert society

  • #6
    New to the CF scene
    Join Date
    May 2003
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs down

    Tried the suggestions and they worked . . . only now ALL of my .jpg and .gif files are blocked

    Forget it. I'll figure out something else.

  • #7
    New Coder dragon's Avatar
    Join Date
    May 2003
    Location
    Florida
    Posts
    99
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Of course, I'm new here, but BayouWebmaster, it looks like you have one too many www's in that code.


  •  

    Posting Permissions

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