I plan to be starting a website that will contain multiple encryption algorithms written in Javascript. I do not want these js files to be distributed to anybody with an IP outside of the US as I feel I might be breaking export laws (the servers, at least in the beginning, will be in the US). I know there are plenty of ways to spoof IP to get around this but I feel this is the best kind of restriction I could realistically implement and that it would prove intent not to transmit out of the country (due diligence).
For various reasons I do not want to encrypt anything server side. That is out of the question.
I could write up some server side code to geocode the IP address and either return the JS or not but I'm thinking there might be some configuration setting I can set in IIS. I don't want to rewrite the wheel if something already exists.
Can IIS be configured to restrict access to certain files based on IP address and geocoding? Am I being too paranoid?