I need to prohibit access to my js file except for some website. eg I have js for special external website so this website can load my js
but if other website wants to load this js, it should get error message
How can I do it? please help
Note!
in fact, this request from external website goes to my php and php creates js file
Can php check the host name of website which made request?