random wrote:
Yeah I was trying to use it as a stand alone .htaccess, when I copied and pasted your code below what I had, it then worked.
Man I spent a lot of hours yesterday messing around with my Joomla app but it is perfect now,
Again thanks for the .htaccess code, BTW my server blocks me turning my globals off. This should not be a problem now?
Ah yes, you need the default htaccess file because that first enables the rewrite engine, etc. which the rules I suggested depend on.
It isn't accurate to say that register globals are no longer a problem while using those rewrite rules. I would say however that those rewrite rules are capable of blocking a large percentage of known attacks that depend on register globals. The operative phrase being "known attacks". But, such is the problem with any reactive defense mechanism. It is very hard to write rules to block attacks that don't exist yet. Do you know what I mean? On a more positive note, I have found them to be useful as they did block, for example, the recent OpenSEF issue when I first tried to test the bug on my system. Fortunately that hasn't made its way to an exploit because we were able to get in touch with the developers and get the issue resolved quickly. But if it had, those using that ruleset wouldn't have lost much sleep.
