Most Web scanners (including the upload and Management backend scanners) determine whether a page exists by judging the HTTP 200 return, these scans start to scan vulnerabilities. Since internal logic cannot be strictly controlled, the bottleneck of input/output is implemented. ArticleWhen an incorrect password or permission fails to be entered, we will return an HTTP 400 error message to mislead the scanner to stop scanning (including which manual intruders)
Take php as an example: CopyCodeThe Code is as follows: <? PHP
Ob_start ();
If ('Password '! = $ _ Get ['Password'])
Header ("HTTP/1.1 404 Not Found ");
?>
<! Doctype HTML public "-// W3C // dtd html 4.0 transitional // en">
<HTML>
<Head>
<Title> sample </title>
</Head>
<Body>
</Body>
</Html>
<? PHP ob_end_flush ();?>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service