• The Hotlink File Prevention plugin added the rule (mydomain.com was added for privacy in this post) to htaccess in the uploads folder, but it’s not working when I test the video embed on another domain.

    I’m wondering if the “FilesMatch” rules in the htaccess file could be preventing the Hotlink File Prevention rules from working.

    <FilesMatch "\.(?i:php)$">
      <IfModule !mod_authz_core.c>
        Order allow,deny
        Deny from all
      </IfModule>
      <IfModule mod_authz_core.c>
        Require all denied
      </IfModule>
    </FilesMatch>
    
    # BEGIN Hotlink File Prevention
    # The directives (lines) between "BEGIN Hotlink File Prevention" and "END Hotlink File Prevention" are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} ^https://mydomain.com/ [NC]
    RewriteRule .? - [S=1]
    RewriteRule 2023/02/rc-intro-2.mp4 - [NC,L,F]
    # END Hotlink File Prevention
  • The topic ‘Not working’ is closed to new replies.