Archived since we no longer use EZProxy and are not maintaining this tool.
There are two versions. One is an iframe embed version. This is discouraged because it requires you to use a less strict cross site scripting setting. The other is a webhook version.
- Put the
hook.phpfile on a webserver that can be reached by your ezproxy users - Change the email address variables at the top.
emailAddressesare where a needhost notification will be sent.adminEmailis notified when someone triggers the form by directly visiting the form. This was primarily to avoid false positives, but still be made aware if the form was somehow being made available. - Add the contents of
emailNotice.jsto yourdocs/needhost.htminside a<script>tag. Update thewebhookvariable to point at yourhook.phpfile. - Now, whenever the needhost.htm file is triggered, the hook.php file will send an email to alert staff.
- Put the
emailNotice.phpfile on a web server that can be reached from your ezproxy host. - Change the email address variables at the top.
emailAddressesare where a needhost notification will be sent.adminEmailis notified when someone triggers the form by directly visiting the form. This was primarily to avoid false positives, but still be made aware if the form was somehow being made available. - Add
<iframe id="emailNotice" src="//example.edu/ezproxyHostNeeded/emailNotice.php" frameboarder="0" style="display:none" referrerPolicy="unsafe-url"></iframe>to the bottom of yourdocs/needhost.htmfile, making sure the src attribute points to theemailNotice.phpfile you just customized and made available.