WebSite X5Help Center

 
Rod M.
Rod M.
User

Anti-leaching in .htaccess file  en

Autor: Rod M.
Visitado 1844, Followers 2, Compartido 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.

Publicado en
3 RESPUESTAS
Rod M.
Rod M.
User
Autor

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

Leer más
Publicado en 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.

Leer más
Publicado en de Andre E