Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2008-01-29 07:07:14

kaliok
New member
Registered: 2008-01-29
Posts: 2

blocking outside use

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

#2 2008-01-31 12:47:50

jedi58
Xinha Authority
From: Leicester, UK
Registered: 2007-01-14
Posts: 113
Website

Re: blocking outside use

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

#3 2008-02-01 10:43:32

kaliok
New member
Registered: 2008-01-29
Posts: 2

Re: blocking outside use

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

Board footer

Powered by FluxBB