No announcement yet.

"POST requests from foreign hosts are not allowed."

  • Filter
  • Time
  • Show
Clear All
new posts

  • "POST requests from foreign hosts are not allowed."

    I made a simple PHP script months ago to automatically create a thread with info that has been inputed into a form. This of course uses POST. As I understand, this "security hole" has been patched in one of the new versions of the released software. When I try to use the script now I receive an "POST requests from foreign hosts are not allowed." error on newthread.php. As you might of guessed, the host that the script is on is different than the one the forums are on.

    This script is used to simplify the process and reduce the time it takes for our referees to write out reports (they write more than 50 a day on average).

    I'm just wondering if there is anyway I can get around this without actually placing the script on the same host. This is a last resort for me, as I will not have direct access to the host to change files, I will allows have to go through another person to make small changes.

    I've thought about creating a small MySQL db that will prune but I don't know how newthread.php will respond to MySQL queries.

    The script I have written can be located at and the forums at

    Any help is appreciated.

  • #2
    It should be possible to set an exception to the foreign hosts restriction, but that would require modifying the code. For this reason I recommend you post on


    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.