Anti-leaching in .htaccess file
Autore: Rod M.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.
If you want to be sure create the htacces file yourself and upload it everytime.
step1 ->expert TAB -? below screen linked files.
http://help.websitex5.com/en/v16/pro/imp_seo_tab2.htm
Autore
Thank you so much for pointing me in that direction. I will certainly give it a go.
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.