Support

Admin Tools

#17636 403 Forbiden when GET var contains http:// from Google Experiments

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by nicholas on Wednesday, 25 September 2013 06:09 CDT

perfect-web
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? Yes
Have I searched the tickets before posting? Yes
Have I read the documentation before posting (which pages?)? Yes, about .htaccess Maker

Joomla! version: 2.5.14
PHP version: 5.3.14
Admin Tools version: 2.5.8

Description of my issue:

I would like to tweak File injection protection
that it would allow one GET var:
utm_referrer=http://...
This is generated by Google Analytics Experiments which I am using on my site.

Here is original protection:

##### File injection protection -- BEGIN
RewriteCond %{REQUEST_METHOD} GET
RewriteCond %{QUERY_STRING} [a-zA-Z0-9_]=http:// [OR]
RewriteCond %{QUERY_STRING} [a-zA-Z0-9_]=(\.\.//?)+ [OR]
RewriteCond %{QUERY_STRING} [a-zA-Z0-9_]=/([a-z0-9_.]//?)+ [NC]
RewriteRule .* - [F]
##### File injection protection -- END

nicholas
Akeeba Staff
Manager
Well, the file injection protection in .htaccess Maker works. That's what you're telling me. Yes, it's very trigger-happy. You can always disable this feature and use the DFIShield in Web Application Firewall instead. The latter is much smarter and analyses the contents of the link before deciding whether it should block it or not. If it looks like raw PHP code it will block it. In any other case it will allow it. I believe that's what you want and no, this can't be implemented with .htaccess directives (believe me, I searched high and low before ending up writing the DFIShield feature after all).

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

perfect-web
Thank you. That was helpful.

nicholas
Akeeba Staff
Manager
You're welcome!

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!