The best way to prevent sql injection is to filter out all the data submitted to the backend.
For simple cases, such as including single quotes ', semicolon;, <, >, and other characters can be avoided by rewriting directly to the 404 page. There is a premise to use rewrite to know, generally using rewrite for regular matching can only match the URI of the web page, that is, the url in the front part, and the later part is the request parameter. The request parameter after the question mark is represented by $query_string in nginx. It cannot be matched in rewrite. It needs to be judged by if. For example, for the parameter with single quotes, 'match and then direct to the error page, /plus/list.php? Tid=19&mid=1124' rewrite ^.*([\\;'\\<\\>]).* /error.html break; Directly writing such an overwrite will definitely not match correctly because the rewrite parameter only Will match the requested uri, which is the /plus/list.php part. You need to use $query_string to determine with if, if the query string contains special characters, return 404. If ( $query_string ~* ".*[\\;'\\<\\>].*" ){ return 404; }
Let your website open second, enable for IIS "content expiration&&&;quo; Wha
first say the solution: component downloader to download ISAPI_Rewrite, extract it. Add ISAPI_Rewri
prohibit IIS cache static files (png, js, html, etc.) Background: IIS to improve performance, by def
Increasingly junk spam has become a cancer on the Internet. Although most email a
How to choose the best tool for your virtual infrastructure?
How to unlock the automatic lock of Win2003?
Microsoft WSUS server 3.0 installation configuration details
In-depth analysis of IIS 6.0 (three)
Noun analysis: What is Microsoft's server Hyper-V technology
Website 501 Method Not Implemented Error
Win2000 installation and server configuration (below)
Your browser sent a request that this server could not understand
Http header header information parameters explain
IIS release site to password fault refinement
Apache and virtual directory configuration in Windows environment
The Win2003AD database is so important, have you backed up?
Based on Vista and then upgrade: Win7 UAC Detailed
Win10 start menu and cortana are not working properly how to solve?
Windows 8.1 can't be manually/automatically sleep, or sleep can't wake up
Win10 system photo viewer full-screen viewing function
Installing a network printer under Win8 system to cope with daily office needs
Silent wins with sound pictures stitching your own Win8 world
Use Windows 7's own backup tool
Shell awk real-time monitoring network card traffic script (common application 2)