WebSite X5Help Center

 
Rod M.
Rod M.
User

Anti-leaching in .htaccess file  en

Auteur : Rod M.
Visité 1840, Followers 2, Partagé 0  

I notice that website x5 makes an .htaccess file that has one line:

-------------------------------------
# WebSite X5 - Start Code [do not edit]
ErrorDocument 404 /cd/page-404.html
# WebSite X5 - End Code
-------------------------------------

Will adding this cause any problems?

-------------------------------------
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?website\.com [NC]
RewriteRule \.(jpe?g|gif|bmp|png|mp3|pdf)$ http://AnAlternativeImageThatSubstitsTheseFiles.com.image.jpg [NC,R,L]
-------------------------------------

But more to the point, will I have to check that my revision has not been updated every time I update the website?

Unless I have not found it, Is there a place in Website X5 where the .htaccess can be customised? If not, it would be awesome if a feature for this could be added in an update.

Posté le
3 RéPONSES
Rod M.
Rod M.
User
Auteur

Thank you so much for pointing me in that direction. I will certainly give it a go.

Lire plus
Posté le de Rod M.
Andre E
Andre E
Moderator

Great, if you need more help let me know, you can set the file to a folder that is in the root.

Well you can see and test, i am sure you can work it out right now.

Lire plus
Posté le de Andre E