<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PHP settings in Archive</title>
    <link>https://business.forums.bt.com/t5/Archive/PHP-settings/m-p/29489#M13499</link>
    <description>&lt;P&gt;Probably your best bet would be to add the following lines to an htaccess file in your root&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;php_flag register_globals off﻿&lt;/P&gt;&lt;P&gt;php_flag &lt;FONT face="arial,helvetica,sans-serif"&gt;magic_quotes_gpc off&lt;/FONT&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you don't already have one an htaccess file is simply a text document named .htaccess that is uploaded into you root. Simply create one with the lines of text mentioned above and upload it and you should be all set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Aug 2011 03:50:06 GMT</pubDate>
    <dc:creator>duskjome</dc:creator>
    <dc:date>2011-08-22T03:50:06Z</dc:date>
    <item>
      <title>PHP settings</title>
      <link>https://business.forums.bt.com/t5/Archive/PHP-settings/m-p/29487#M13498</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Hi,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I'm trying to make my site more secure. Does anyone know how to adjust these two php values:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;register_globals = Off&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;magic_quotes_gpc = Off&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I've tried a php.ini file in the \public folder and the cgi-bin folder.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Thanks for your help.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Matthew&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Aug 2011 16:10:41 GMT</pubDate>
      <guid>https://business.forums.bt.com/t5/Archive/PHP-settings/m-p/29487#M13498</guid>
      <dc:creator>matthewseymour</dc:creator>
      <dc:date>2011-08-21T16:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: PHP settings</title>
      <link>https://business.forums.bt.com/t5/Archive/PHP-settings/m-p/29489#M13499</link>
      <description>&lt;P&gt;Probably your best bet would be to add the following lines to an htaccess file in your root&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;php_flag register_globals off﻿&lt;/P&gt;&lt;P&gt;php_flag &lt;FONT face="arial,helvetica,sans-serif"&gt;magic_quotes_gpc off&lt;/FONT&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you don't already have one an htaccess file is simply a text document named .htaccess that is uploaded into you root. Simply create one with the lines of text mentioned above and upload it and you should be all set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2011 03:50:06 GMT</pubDate>
      <guid>https://business.forums.bt.com/t5/Archive/PHP-settings/m-p/29489#M13499</guid>
      <dc:creator>duskjome</dc:creator>
      <dc:date>2011-08-22T03:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: PHP settings</title>
      <link>https://business.forums.bt.com/t5/Archive/PHP-settings/m-p/29493#M13500</link>
      <description>&lt;P&gt;Web hosting providers seldom permit clients to create 'ini' files on a shared server so htaccess is a good place start.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then make sure you validate all form fields and&amp;nbsp; url inputs to prevent XSS (cross site scripting) and SQL injection if your site uses a database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Never use Javascript for Password protection unless you employ AES or DES encryption of the data (web hosts don't like people doing this because they cannot read the data and don't know what you're keeping on their server!)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some protection against 'site-scraping' can be achieved by dynamically altering the CSS file and corresponding class/id names. Javascript can also be used to great effect to either write or swap page contents around because bots can only read it but not execute it. A smaller version of this trick uses javascript to 'cloak' an email address from harvester bots.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Contact form scripts are another area often overlooked. Again make sure the fields are validated and do try to include some anti-bot measures such as a 'Captcha' or checking of the referer and useragent variables for known bots. Adding an IP based flood control to prevent the same IP sending multiple messages in a small time frame can also save a lot of headaches as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Buried in the&amp;nbsp; T&amp;amp;C for many webhosts is a clause about accounts may be automatically suspended for Spamming. Normally spamming applies to you sending emails to multiple recipients in short space of time, however a contact form being clicked bombed by a neferious competitor creates the same result and your account gets a temporary ban as a result until a human&amp;nbsp; with admin status&amp;nbsp; looks at where all the email was sent.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2011 07:45:32 GMT</pubDate>
      <guid>https://business.forums.bt.com/t5/Archive/PHP-settings/m-p/29493#M13500</guid>
      <dc:creator>Sogo7</dc:creator>
      <dc:date>2011-08-22T07:45:32Z</dc:date>
    </item>
  </channel>
</rss>

