WebSite X5Help Center

 
Rod M.
Rod M.
User

Anti-leaching in .htaccess file  en

Author: Rod M.
Visited 1611, Followers 2, Shared 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.

Posted on the
3 ANSWERS
Rod M.
Rod M.
User
Author

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

Read more
Posted on the from 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.

Read more
Posted on the from Andre E