Support

Admin Tools

#18457 .htaccess and seblod

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 iamalive on Monday, 09 December 2013 16:04 CST

iamalive
Hi 

I'm getting an error whilst using Seblod, which goes away when I delet the standard .htaccess created by admintools.
I guess I need to add an exception, but I can't work out what. I've tried adding the seblod template, but that hasn't helped.

Can you help?

Here's the error message:



403 Forbidden



You don't have permission to access the requested ressource. If this error persists, please contact the site administrator or hosting provider including the informations below.

Request Details



GET /bmw/administrator/index.php?option=com_cck&task=box.add&tmpl=component&file=http://mydomain.ch/bmw/templates/seb_one/template_preview.png HTTP/1.1

Host: mydomain.ch

User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Accept-Language: en-US,en;q=0.5

Accept-Encoding: gzip, deflate

Referer: http://mydomain.ch/bmw/administrator/index.php?option=com_cck&view=type&layout=edit&id=500

Connection: keep-alive



HTTP/1.1 403 Forbidden

Date: Mon, 9 Dec 2013 15:05:05 CET

Content-Type: text/html

Server: Apache

Connection: keep-alive

dlb
Adding your template folder to the "Allow direct access, including .php files, to these directories" field will usually take care of a template exception. Note that your exception needs to be in the form:
templates/[your_template_folder]
You have to use the forward slash between the folder names and if you are on a Linux server the folder names are case sensitive.

If that doesn't work, you will need to do some detective work using the instructions here: https://www.akeebabackup.com/documentation/troubleshooter/athtaccessexceptions.html.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

iamalive
Hi Dale

I'd already added the template in the format you mentioned but that doesn't do the trick.

i looked at your instructions and I'm afraid I douldn't spot a solution through that.

The error occurs in an iframe popup which is generated whilst in the backend, editing a SEBLOD form. It's supposed to show an image which resides in the frontend templates folder.
I recall Nicholas once commenting on programmes which call up the frontend from the backend, but I cannot find a solution.

More advice?
Regards
David

dlb
Usually the problem works the other way around, you get an error when you are working on the front end and you call a program or file located within the /administrator folder tree. The instructions for troubleshooting that are here: https://www.akeebabackup.com/documentation/troubleshooter/athtaccessexceptions.html.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

iamalive
Well, thanks Dale.
As I said, I tried using the instructions without success.
That means, I'm stuck.
Regards
David

iamalive
Well I've done some experimenting and the problem is being caused by the file injection section, which refers to the GET function, which is mentioned in the error message.

##### 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


I consider this an important part of the htaccess generator. Is there some way to make an exception or do I just have to turn that function off?

dlb
You're not stuck, you have just stumped the first level support guy. I'll ask Nicholas to take a look at this and see if he can make sense of it.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

dlb
David,

I got a reply from Nicholas:
He is correct and the only workaround is disabling the feature. Or asking the developer of the component if they can refrain from using a full URL as a query string parameter, a practice which is considered evil anyway.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

iamalive
Well, I thought that might be the answer.

OK, I'll try and post it on the developers forum.

Thanks for trying and the feedback

Regards
David

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!