Problem with hotlinking websites

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pornuploader
    Confirmed User
    • Jan 2015
    • 486

    #1

    Problem with hotlinking websites

    Hello guys

    I used following codes to block images of my websites on hotlinks sites, I put them on .htaccess file, But they don't work ( I cleared browser cache as well, Even tested them in Remote desktop VPS)

    Does anyone have any idea?

    Code:
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mywebsite\.com/ [NC]
    RewriteCond %{HTTP_REFERER} !^$
    RewriteRule .*\.(jpe?g|gif|bmp|png)$ https://i.imgur.com/ZtXiCBw.gif [L]

    Code:
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mywebsite\.com/ [NC]
    RewriteCond %{HTTP_REFERER} !^$
    RewriteRule .*\.(jpe?g|gif|bmp|png)$ - [F]


    Code:
    RewriteEngine on 
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?website.com [NC] 
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?website.com.*$ [NC] 
    RewriteRule \.(gif|jpg)$ - [F]
  • Miguel T
    ♦ Web Developer ♦
    • May 2005
    • 12473

    #2
    Code:
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^https://(www\.)example.com/.*$ [NC]
    RewriteRule \.(gif|jpg|jpeg|bmp|zip|rar|mp3|flv|swf|xml|php|png|css|pdf)$ https://www.example.com/gofuckyourself.gif [R,L]
    This should work...
    It also shows a gofuckyourself.gif to leechers.

    If you simply want to block it, change the last line to:
    Code:
    RewriteRule \.(gif|jpg|jpeg|bmp|zip|rar|mp3|flv|swf|xml|php|png|css|pdf)$ - [F]

    Full Stack Webdeveloper: HTML5/CSS3, jQuery, AJAX, ElevatedX, NATS, MechBunny, Wordpress

    Comment

    • pornuploader
      Confirmed User
      • Jan 2015
      • 486

      #3
      Originally posted by Miguel T

      This should work...
      It also shows a gofuckyourself.gif to leechers.

      If you simply want to block it, change the last line to:

      I did check. It doesn't work as well, This code blocked the all images on my own website.
      I've tried most methods but neither of them work
      How about cloudflare? They have a feature as "Hotlink Protection", Have you ever tried this feature?

      Comment

      • Taipac
        Registered User
        • Jun 2017
        • 32

        #4
        Why you will do any against "hotlinking" ?
        ? Maybe, because you have only LIMITED traffic ?

        Then CHANGE to UNlimited...
        ...AND USE the hotlinks for YOUR OWN !

        BRAND all images with YOUR domain ;-)

        text on images [for example]:
        "ORIGINAL-image in FULL-size with FREE bonus ONLY at hddp:// www . pornuploader . com.."

        Comment

        • pornuploader
          Confirmed User
          • Jan 2015
          • 486

          #5
          Originally posted by Taipac
          Why you will do any against "hotlinking" ?
          ? Maybe, because you have only LIMITED traffic ?

          Then CHANGE to UNlimited...
          ...AND USE the hotlinks for YOUR OWN !

          BRAND all images with YOUR domain ;-)

          text on images [for example]:
          "ORIGINAL-image in FULL-size with FREE bonus ONLY at hddp:// www . pornuploader . com.."
          Seems like "Hotlinkings" have bad effect on SEO
          Hundred and hundred of images of my websites have been linked to these "Hotlink websites" but i didn't get any traffic through them, I've seen that the domain rank in Google usually goes down after that the images get linked to such websites.

          Comment

          Working...