Prevent viewing of html files

Support for PhpBB3. Post here to get help with any phpBB3 related issue here
There is no support here! Only Read Access!
Forum rules
In order the get any support, you will have to do following:
1. Use a describing title!
2. Describe your problem and what happened when the problem occured
3. Tell us what version of phpBB3 you are currently using.
Else your topic may be ignored or locked!
Locked
House
BBCoder I
BBCoder I
Posts: 2
Joined: 05 Mar 2010, 09:07

Prevent viewing of html files

Post by House »

What code do I need to add to my .htaccess file to prevent the viewing of the Style's HTML Source files?
It used to be on here but now its gone.
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: Prevent viewing of html files

Post by Stoker »

Here you go: viewtopic.php?f=9&t=481
Just posted it ;)
Board rules! No PM support
House
BBCoder I
BBCoder I
Posts: 2
Joined: 05 Mar 2010, 09:07

Re: Prevent viewing of html files

Post by House »

How did you get the 403 error to display on the style pages?
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: Prevent viewing of html files

Post by Stoker »

The error pages is handled by the server. They are not part of the forum.
Board rules! No PM support
User avatar
BettyBoop
BBCoder II
BBCoder II
Posts: 13
Joined: 08 Mar 2010, 17:32
Location: Cartoon Land

Re: Prevent viewing of html files

Post by BettyBoop »

House » 26 Mar 2010, 07:09 wrote:How did you get the 403 error to display on the style pages?
Great article here hon on how you can accomplish this.. ;)
[center]Number 1 reason you can't install that mod is:
"You are to busy doing it wrong to do it right"[/center]
Locked