• Resolved Cafn

    (@cafn)


    Hi there.

    So i’m running a website and it has several images. I’ve found another website that is hotlinking my images

    The URL of the image that is being copied is this one:
    https://apostalegal.pt/wp-content/uploads/2015/10/Captura-de-ecr%C3%A3-2015-10-24-%C3%A0s-05.02.21.png”

    I’ve already added what i’ve searched on the internet to .htaccess though it is not working. Here is a copy of it:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteRule ^autenticacao/?$ /wp-login.php [QSA,L]
    RewriteRule ^autenticacao/register/?$ /wp-login.php?action=register [QSA,L]
    RewriteRule ^autenticacao/lostpassword/?$ /wp-login.php?action=lostpassword [QSA,L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^https://(www\.)?apostalegal.pt/.*$ [NC]
    RewriteRule \.(gif|jpg|jpeg|png)$ https://www.mydomain.com/angryman.gif [R,L]
    </IfModule>
    
    # END WordPress
    RewriteCond %{HTTP_HOST} ^apostalegal\.colourinmusic\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.apostalegal\.colourinmusic\.com$
    RewriteRule ^/?$ "http\:\/\/apostalegal\.pt" [R=301,L]
    
    RewriteCond %{HTTP_HOST} ^webmail\.apostalegal\.pt$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.webmail\.apostalegal\.pt$
    RewriteRule ^/?$ "https\:\/\/n1plcpnl0044\.prod\.ams1\.secureserver\.net\:2096\/" [R=301,L]

    What can I do? Thanks for the help.

Viewing 1 replies (of 1 total)
  • Thread Starter Cafn

    (@cafn)

    Ok, noticed that it was working, but the problem was that the image had a termination of “20.10.2015.png” and it didnt figured it out due to that.

Viewing 1 replies (of 1 total)
  • The topic ‘Prevent Hotlinking from my website’ is closed to new replies.