I have a script that runs as an external question on Mechanical Turk. On MTurk, these external questions run as an iFrame on a page on mturk.com.
I want to make it so that the directory that this script is in is only accessible from a few select IPs and from iFrames located on mturk.com. Can I include this in a directory configuration on my file for the site?
For example:
<Directory /blah/blah/blah/directory>
Order deny,allow
Deny from all
Allow from 123.456.789.0
Allow from 98.765.432.10
Allow from mturk.com
</Directory>
Will this consistently work to only allow traffic from the iFrame on that page?