Hello,
I need a help to protect my Javascript execution.
I have written a Javascript which is actually generated by a PHP script.
http://mysite.com/services/service1.js.php
In the remote site, webmasters/site-owners can get the service by simply adding this code -
Say in http://othersite.com/page.html -
Now, the system is working flawlessly :cool2:
Now, I want that only pre-defined remote servers can get the service and not all.
How to do this authentication ?
I need a help to protect my Javascript execution.
I have written a Javascript which is actually generated by a PHP script.
http://mysite.com/services/service1.js.php
In the remote site, webmasters/site-owners can get the service by simply adding this code -
Say in http://othersite.com/page.html -
Code:
<div id="service1">
<script src="http://mysite.com/services/service1.js.php?param1=val1¶m2=val2¶m3=val3" type="text/javascript"></script>
</div>
Now, the system is working flawlessly :cool2:
Now, I want that only pre-defined remote servers can get the service and not all.
How to do this authentication ?