PDA


View Full Version : No work around for this issue in vB 3.0.7?


anarchystar
04-26-2005, 01:56 AM
After trying all the code modifications to fix the "POST requests not allowed from foriegn hosts", I still have not found a work around. Does anyone have teh answer to this? I have even gone as far as to comment out this entire peice of code in init.php and it still did'nt fix the problem


// if (!preg_match('#' . $thishost . '$#siU', $refhost))
// {
// die("POST requests from foreign hosts are not allowed.");
// }
// }
// }


It appears this issue is only with 3.07, so if you are running a earlier version of vB please save me your FAQ nazi commnets, because I have already tried all of the suggested fixes here and at vbulletin.org and none of them have worked.

Am I going to have to scrap my entire subdomain system to get my site to work now?

ConqSoft
04-26-2005, 02:02 AM
It works fine, with the fix posted in the FAQ forum here. (Yes, on a site using sub-domains.)

ConqSoft
04-26-2005, 02:05 AM
And this is what you tried, right?

http://www.vbadvanced.com/forum/showthread.php?t=7277

ConqSoft
04-26-2005, 02:06 AM
And, if you commented that piece of code out, and it still gave you that error message, then there's no way you uploaded the changed file, since that would eliminate that message from having any possibility of being shown.

anarchystar
04-26-2005, 02:14 AM
Yea, I tried that, plus another suggested fix in init.php.

I thought the same thing you did about maybe the changed file did'nt get uploaded, so I uploaded it, and then tried it, still had the problem. I then downloaded the same file off my webserver to make sure it was the modified copy and it was.

I am going to try again now so that just to make sure ... again. :o

ConqSoft
04-26-2005, 02:20 AM
But you are definately seeing that message displayed, right?

anarchystar
04-26-2005, 02:26 AM
Yea, i just checked the file again off the server and it has the changes. If I give you a guest account would you mind taking a look to see if you get it also?

ConqSoft
04-26-2005, 02:28 AM
Did you do a grep to see if that message exists in another other vB file?

ConqSoft
04-26-2005, 02:29 AM
Also, looking at your code example above, why do you have those extra two ending }'s comment out, when you don't have their corresponding {'s listed also?

anarchystar
04-26-2005, 02:33 AM
username: Rob2005
Password: r2005


just a typo ... but even then I should have recieved an error or something, not the same problem yet again.

TitanKing
04-26-2005, 04:10 AM
This is indeed a problem, mine does not show the message but rather just refreshes the screen after inserting username and password on a parked domain... any other ideas would help allot init.php fix and login.php fix was done...

Brian
04-26-2005, 12:26 PM
As ConqSoft said, I don't see any way you would still be getting the error if you applied the fix in the FAQ forum, and I especially don't see how you would be getting it if you removed that code. If you'd like to submit a support ticket though I'll be glad to take a look.