Stop file access

  • Posts: 1119
  • Thank you received: 114
7 years 11 months ago #256204

Hi,

Does anyone know if it is possible to restrict some file access by other domains? There is a site which load css, js directly from our site.

Found i had to add this to my htaccess file:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^https://(www\.)?mysite.com/.*$ [NC]
RewriteRule \.(bmp|gif|jpg|png|svg|avi|mp3|wmv|css|js|pdf)$ - [F]

I hope it will help someone too.

Thank you

Last edit: 7 years 11 months ago by kyratn.

Please Log in or Create an account to join the conversation.

  • Posts: 26150
  • Thank you received: 4026
  • MODERATOR
7 years 11 months ago #256228

Hi,

As you understand, that is not related at all with HikaShop ; so that is far outside the support we can provide.
That kind of question is related to web hosting, server management. Not HikaShop or Joomla.

Thank you for your understanding.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.043 seconds
Powered by Kunena Forum