Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall
The easy to prevent the injection switch is to protect the Web site security role, but the use of more trouble, every time to write to the data, is prohibited, but also to open the upload software changes, then how to put the anti-injection switch is located in the background of the site, so you can control through the background of the site, so as to get rid of the FTP mode? Here we cite an example website: http://www.nanke010.com/
Here's how:
1. Create a new Asp file, such as domain.asp
Content is <% ' If the website channel enables the subdomain function, you need to modify the following settings
Const Enable_subdomain = False ' sub-domain name feature switch true= enabled, false= disabled
Const domainroot = "powereasy.net" site domain name root
Const strsubdomains = "Www|news|shop|soft" ' Host name (sub-domain name) list. For example, to enable ' news.powereasy.net ', here add ' news ', multiple subdomains between a half angle ' | ' Separated
Const Enablestopinjection = True ' Enable anti-SQL injection capability, true to Enabled, false to Disabled%>
Careful netizen may find that these few code is not the root directory under the config.asp inside the top of those lines of code? Yes. The new file is mainly to put this subdomain and SQL anti-injection independent, in order to pass the background of the FSO function to write settings. If not independent, will be injected into the filter code to empty, also completely lost the meaning of the injection.
2, in the conn.asp inside the <!--#include file= "config.asp"--> page did not find the _A5 webmaster Network
Sorry, the page you want to view has no way to find
back to the home page add a line <!--#include file= "domain.asp" to read the relevant settings
3, in the Admin management directory admin_index_left.asp add a plug-in column, the specific location can set their own