adding BBCode, getting 403 error

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
User avatar
cascadeorca
Registered User
Posts: 19
Joined: Wed Mar 09, 2011 2:03 am
Location: Seattle WA USA
Contact:

adding BBCode, getting 403 error

Post by cascadeorca »

So I'm trying to add some custom BBCodes, specifically [spoiler] and maybe [youtube] as well as a thumbnail image code.

I can add codes, as long as the html replacement does not excede 2 sets of brackets. Otherwise it will 403 on me.

A functional example for the HTML replacement would be:

Code: Select all

<b>{text}</b>
An erroring example would be anything with more than 2 sets of brackets, example:

Code: Select all

<b><u>{text}</u></b>
Any help would be greatly appreciated, thanks!

The specific error I am receiving is:

403 Forbidden
You don't have permission to access /forum/adm/index.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Last edited by cascadeorca on Sun Mar 13, 2011 10:29 am, edited 1 time in total.
User avatar
Mick
Support Team Member
Support Team Member
Posts: 22752
Joined: Fri Aug 29, 2008 9:49 am
Location: Watching cricket probably.

Re: adding BBCode, getting 403 error

Post by Mick »

I'm fairly certain you can't use nested brackets like that. There's a whole ruck of information in this sticky here that should help. Incidentally, why would you want to create new BBCodes when they already exist?

I'm not sure why you're getting the 404 error though, you would normally get "Your BBCode is constructed in an invalid form." if there was something wrong with your BBCode syntax.
"The more connected we get the more alone we become" - Kyle Broflovski©
User avatar
cascadeorca
Registered User
Posts: 19
Joined: Wed Mar 09, 2011 2:03 am
Location: Seattle WA USA
Contact:

Re: adding BBCode, getting 403 error

Post by cascadeorca »

I guess my phpbb I installed didn't come default with youtube, spoiler, and resized images. Is it supposed to? Mine only came with what I thought was the default: bold, italic, underline, quote, code, list, list=, [*], img, url, and flash.

I was just using bold and italic as examples of multiple code examples, a more true example of a fail and a succeed would be:

(very simple spoiler text-only code)Submits successfully:

Code: Select all

<font style="background:black; color:black">{TEXT}</font>
(youtube code) 403 & 404 errors and refuses submission:

Code: Select all

<object type="application/x-shockwave-flash" data="http://www.youtube.com/v/{IDENTIFIER}" width="425" height="350">
<param name="movie" value="http://www.youtube.com/v/{IDENTIFIER}" />
<param name="wmode" value="transparent" />
</object>
User avatar
Brf
Support Team Member
Support Team Member
Posts: 52111
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: adding BBCode, getting 403 error

Post by Brf »

403 errors like that are usually caused by mod_security, where your host is blocking certain combinations of symbols.
User avatar
cascadeorca
Registered User
Posts: 19
Joined: Wed Mar 09, 2011 2:03 am
Location: Seattle WA USA
Contact:

Re: adding BBCode, getting 403 error

Post by cascadeorca »

oh interesting.

Do you know what kind of thing I would say to my server provider to possibly get this resolved?

Thank you!
User avatar
Mick
Support Team Member
Support Team Member
Posts: 22752
Joined: Fri Aug 29, 2008 9:49 am
Location: Watching cricket probably.

Re: adding BBCode, getting 403 error

Post by Mick »

cascadeorca wrote:I guess my phpbb I installed didn't come default with youtube, spoiler, and resized images. Is it supposed to? Mine only came with what I thought was the default: bold, italic, underline, quote, code, list, list=, [*], img, url, and flash.
The three you quote aren't supplied but there are examples of the custom BBCodes (youtube and spoiler) in the link I provided and you would need a mod for resizing images, this, ReIMG Image Resizer, works very well.
"The more connected we get the more alone we become" - Kyle Broflovski©
User avatar
Brf
Support Team Member
Support Team Member
Posts: 52111
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: adding BBCode, getting 403 error

Post by Brf »

cascadeorca wrote:Do you know what kind of thing I would say to my server provider to possibly get this resolved?
Show them the code you are trying to output and tell them their mod_security is blocking it.
User avatar
cascadeorca
Registered User
Posts: 19
Joined: Wed Mar 09, 2011 2:03 am
Location: Seattle WA USA
Contact:

Re: adding BBCode, getting 403 error

Post by cascadeorca »

Brf wrote:
cascadeorca wrote:Do you know what kind of thing I would say to my server provider to possibly get this resolved?
Show them the code you are trying to output and tell them their mod_security is blocking it.
awesome, I sent them a message and hopefully will hear back soon-ish.
User avatar
cascadeorca
Registered User
Posts: 19
Joined: Wed Mar 09, 2011 2:03 am
Location: Seattle WA USA
Contact:

Re: adding BBCode, getting 403 error

Post by cascadeorca »

Mixstar wrote:
cascadeorca wrote:I guess my phpbb I installed didn't come default with youtube, spoiler, and resized images. Is it supposed to? Mine only came with what I thought was the default: bold, italic, underline, quote, code, list, list=, [*], img, url, and flash.
The three you quote aren't supplied but there are examples of the custom BBCodes (youtube and spoiler) in the link I provided and you would need a mod for resizing images, this, ReIMG Image Resizer, works very well.

Thanks for the supplied codes.

I will absolutely use them when I manage to fix this 403 and 404 error involved with the implimentation of them. :)
User avatar
cascadeorca
Registered User
Posts: 19
Joined: Wed Mar 09, 2011 2:03 am
Location: Seattle WA USA
Contact:

Re: adding BBCode, getting 403 error

Post by cascadeorca »

is having mod_security disabled a bad thing?

disabling it definitely fixed the problem.

If I re-implimented mod_security after I made all my changes, would that theoretically hault the changes from functioning?

It seems like mod_security helps to prevent hacking, which I'm all for. But if I can't make the forum work right, then hacking isn't my biggest concern. Can I have my cake and eat it too?
User avatar
Brf
Support Team Member
Support Team Member
Posts: 52111
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: adding BBCode, getting 403 error

Post by Brf »

There are no known exploits for the current version of phpBB, so mod_security is not needed. If you are allowed to disable mod_security using the php.ini file, I would disable it for just the phpBB folders.
Wulfric
Registered User
Posts: 26
Joined: Fri Nov 13, 2009 8:09 am

Re: adding BBCode, getting 403 error

Post by Wulfric »

I have mode security disabled, yet i keep getting error when adding an iframe BBCODE

Code: Select all

[iframe]{URL}[/iframe]

Code: Select all

<iframe src="{URL}" height="600" width="800" frameborder="0"></iframe>
User avatar
Lumpy Burgertushie
Registered User
Posts: 68118
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: adding BBCode, getting 403 error

Post by Lumpy Burgertushie »

what error? link to the board and the post where you are trying to use this bbcode please.

might be better to start a new topic for your problem and Please fill out the Support Request Template Generator and post it back here to enable us to assist you better.


robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

If nobody is in the forest, does a tree really fall?
Locked

Return to “[3.0.x] Support Forum”