0
Hello, I am trying to develop an htaccess code that prevents other sites from using my content. I tried this, but without success, if I type in the browser given file/link it is inactive even for me, and it was to be for another person/site and on my site be accessible normally.
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?meusite\.com\.br/ [NC]
RewriteCond %{HTTP_REFERER} !^$RewriteRule .*\.(jpe?g|gif|bmp|png)$ /imagens/proibido.jpg [L]
Could someone help me?
do not understand you want to prohibit the user from accessing a certain url ? or you that I forbid the user to copy/embed from your page ?
– Marcos Brinner
I want to make me use for example: meusite.com/video.mp4 on my site, and if someone else tries to access it to put on your site, there will be how, in short, all the content of my site would only be played to my site and not to third parties, such as taking the link and placing it inside an iframe
– ihudsonbr
you use Cpanel ?
– Marcos Brinner
Yes, I use Cpanel
– ihudsonbr
This will not work even if the code "works", websites can still use your content. If they do not use the
crossorigin
in theimg
and use thereferer-policy: no-referrer
(same-origin
), this will make the browser not inform thereferer
. :D– Inkeliz
I have this doubt, because I see on site that has links with endings . m3u8, that if I use them on my site, does not play, is kind of a domain protection.
– ihudsonbr