Results 1 to 3 of 3

Thread: Parsing html as php - security issues?

  1. #1
    Member
    Join Date
    Oct 2006
    Posts
    37

    Default Parsing html as php - security issues?

    I would like to know everyones thought on parsing html/htm as php. For quite some time I have been using :

    AddType application/x-httpd-php .htm
    AddType application/x-httpd-php .html

    I have heard both sides of the story... some say its harmless... others say its a huge no-no security issue. The reason I ask is because I will be moving to suphp soon which led me to lots of things such as 755 folders, 644 files, AddHandler, and a bunch of other stuff.

    So, is it a security issue / has repercussions or not? Due to the age of my sites and them being 'html' I would prefer to stay that way along with a few other reasons.

    Since I am going to a new server and will be making changes I might as well do everything at once right?

  2. #2
    Member Yehzo's Avatar
    Join Date
    Apr 2011
    Location
    Michigan
    Posts
    196
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Parsing html as php - security issues?

    I have personally never heard any sort of security issues that can come about from parsing html as php. But then again, this may just be one of those things you would want to proceed with caution on.
    ~ Joshua @Yehzo
    Check out my site - Yehzo.com

  3. #3
    Member
    Join Date
    Sep 2004
    Location
    inside a catfish
    Posts
    1,098
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Parsing html as php - security issues?

    I'm not aware of security issues. However, delivery of HTML content would potentially be slower if you force it to be processed through PHP. Let Apache handle HTML natively and avoid any extra overhead of having it pumped through PHP.

    M

Similar Threads

  1. HTML Parsing in suPHP
    By ukagg in forum cPanel & WHM Discussions
    Replies: 10
    Last Post: 10-09-2009, 07:42 PM
  2. parsing php into html
    By monckey100 in forum Database Discussions
    Replies: 10
    Last Post: 09-18-2009, 07:12 PM
  3. XML Parsing Issues
    By jfor007 in forum cPanel & WHM Discussions
    Replies: 4
    Last Post: 01-30-2007, 11:50 AM
  4. Parsing .html files as .php inside Cpanel skin
    By Radio_Head in forum Themes and Branding
    Replies: 9
    Last Post: 12-13-2004, 02:35 PM