Skip to content

Avoid OWASP api-psiturk-org block

Compare
Choose a tag to compare
@deargle deargle released this 17 Mar 18:47
· 3 commits to python2 since this release
f4859ee

Last week, api-psiturk-org's dreamhost server started blocking attempts to create psiturk ad server ads, because the html in the POST triggers a threat warning. Removing all html comments from ad.html and setting the Content-Type: application/json header on the POST seems to let the ads get through. Sigh.

This release removes all comments from the ad.html created by the example code. You can remove the html comments from your own ad if you're having trouble getting it to post. HTML comments look like this: <!-- -->. You can safely delete them.

Don't forget though, the ad server is being sunset, at some point!