You are not logged in.
Pages: 1
Hi is there any way to stop other sites/people using the javascript that xinha uses on my site. So if they were to work out the absolute url of the javascript they couldn't just put it in their code? Other than renaming the folder it sits in to something that most people wouldn't guess?
eg: http://www.thesitesname.com/myfolderxy1 … nhaCore.js
Thanks for any advice in advance.
Last edited by kaliok (2008-01-29 07:08:09)
Offline
could add / change a .htaccess file on the server so that if the referrer is from another site, or if there is no referrer that it blocks access
David G. Paul
[url]http://www.newearthonline.co.uk[/url]
Offline
Thanks. I have tried doing that, but I am not great with htaccess and apache. I have the following, which I have placed in an htaccess file which I have then placed in the xinha folder:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www.)?thesitename.com/.*$ [NC]
RewriteRule \.(js)$ - [F,L,NC]
Any further help would be a great help. Thanks in advance.
Offline
Pages: 1