[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-703241-105":59,"doc-detail-703241-en":130,"doc-similar-703241":244},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","web-security-for-developers-real-threats-practical-defense","Web Security for Developers - Real Threats - Practical Defense","","Web Security for Developers presents security knowledge aimed at web developers, focusing on real-world threats and practical defenses. The book is authored by Malcolm McDonald and published by No Starch Press. Front matter includes bibliographic details, copyright and distribution notices, and author background describing extensive coding experience and security training. The technical reviewer profile highlights security leadership, mentorship, and work across policy reviews and penetration testing.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/web-security-for-developers-real-threats-practical-defense/703241/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/web-security-for-developers-real-threats-practical-defense/703241.png","ImageObject",300,407,{"name":92,"@type":93},"Finn","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-18","2026-11-13",true,{"@type":102,"interactionType":103,"userInteractionCount":19},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"Who wrote Web Security for Developers?","Question",{"text":112,"@type":113},"Malcolm McDonald is the author of Web Security for Developers.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What is the focus of the book based on its subtitle?",{"text":117,"@type":113},"The subtitle emphasizes real threats and practical defense for web security.",{"name":119,"@type":110,"acceptedAnswer":120},"Which publisher released the book?",{"text":121,"@type":113},"No Starch Press, Inc. published Web Security for Developers.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},703241,1794563748,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":19,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":145,"preview_urls":146},34359740700684,"https://ap-avatar.wpscdn.com/avatar/1f400023980c374ae676?_k=1777273430885731487","WEB SECURITY FOR DEVELOPERS  \nR E A L T H R E A T S , P R A C T I C A L D E F E N S E  \nM A L C O L M M C D O N A L D  \nWEB SECURITY FOR DEVELOPERS  \nWE B SECURITY FOR DEVELOPERS  \nReal Threats , Practical Defe nse  \nby Malcolm McDonald  \nSan Francisco  \nWEB SECURITY FOR DEVELOPERS. Copyright © 2020 by Malcolm McDonald.  \nAll rights reserved. No part of this work may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage or retrieval system, without the prior written permission of the copyright owner and the publisher.  \nISBN-10: 1-59327-994-9  \nISBN-13: 978-1-5932-7994-3  \nPublisher: William Pollock  \nExecutive Editor: Barbara Yien  \nProduction Manager: Laurel Chun  \nProduction Editors: Katrina Taylor and Meg Sneeringer  \nCover Illustration: Gina Redman  \nInterior Design: Octopod Studios  \nProject Editor: Dapinder Dosanjh  \nDevelopmental Editor: Athabasca Witschi  \nTechnical Reviewer: Cliff Janzen  \nCopyeditor: Sharon Wilkey  \nCompositor: Danielle Foster  \nProofreader: James Fraleigh  \nIndexer: BIM Creatives, LLC  \nFor information on distribution, translations, or bulk sales, please contact No Starch Press, Inc. directly: No Starch Press, Inc.  \n245 8th Street, San Francisco, CA 94103 phone: 1.415.863.9900; [info@nostarch.com](info@nostarch.com)[ ](info@nostarch.com)[www.nostarch.com](www.nostarch.com)  \nLibrary of Congress Cataloging-in-Publication Data  \nNames: McDonald, Malcolm, author.  \nTitle: Web security for developers / Malcolm McDonald.  \nDescription: San Francisco : No Starch Press, Inc. , [2020] | Includes index.  \nIdentifiers: LCCN 2020006695 (print) | LCCN 2020006696 (ebook) | ISBN 9781593279943 (paperback) | ISBN 1593279949 (paperback) | ISBN 9781593279950 (ebook)  \nSubjects: LCSH: Hacking. | Computer networks--Security measures .  \nClassification: LCC TK5105.59 .M4833 2020 (print) | LCC TK5105.59 (ebook)| DDC 005.8/7--dc23  \nLC record available at [https://lccn.loc.gov/2020006695](https://lccn.loc.gov/2020006695)  \nLC ebook record available at [https://lccn.loc.gov/2020006696](https://lccn.loc.gov/2020006696)  \nNo Starch Press and the No Starch Press logo are registered trademarks of No Starch Press, Inc. Other product and company names mentioned herein may be the trademarks of their respective owners. Rather than use a trademark symbol with every occurrence of a trademarked name, we are using the names only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark.  \nThe information in this book is distributed on an “As Is” basis, without warranty. While every precaution has been taken in the preparation of this work, neither the author nor No Starch Press, Inc. shall have any liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the information contained in it.  \nTo my wife Monica, who put up with being ignored on weekends while I wrote this book, and my cat Haggis, who contributed content by walking over my keyboard periodically  \nAbout the Author  \nMalcolm McDonald is the creator of [hacksplaining.com](hacksplaining.com), one of the most popular security training resources for web development on the internet. He has spent two decades writing code for financial firms and start-ups, and drew on his experience as a team lead to produce straightforward, easy-to-grasp tutorials about security vulnerabilities and how to protect against them. He lives in Oakland, CA with his wife and cat.  \nAbout the Technical Reviewer  \nSince the early days of Commodore PET and VIC-20, technology has been a constant companion (and sometimes an obsession!) to Cliff Janzen. Cliff is grateful to have had the opportunity to work with and learn from some of the best people in the industry, including Malcolm and the fine people at No Starch. Cliff spendsa majority of the work day managing and mentoring a great tea","cbCaisYlIMtzyI8Z","https://ap.wps.com/l/cbCaisYlIMtzyI8Z","pdf",3435714,218,"English","# Front Matter\n## Title and Authorship\n## Copyright, ISBN, and Publisher Credits\n## Cataloging and Identifiers\n## About the Author\n## About the Technical Reviewer","[{\"question\":\"Who wrote Web Security for Developers?\",\"answer\":\"Malcolm McDonald is the author of Web Security for Developers.\"},{\"question\":\"What is the focus of the book based on its subtitle?\",\"answer\":\"The subtitle emphasizes real threats and practical defense for web security.\"},{\"question\":\"Which publisher released the book?\",\"answer\":\"No Starch Press, Inc. published Web Security for Developers.\"}]","Web Security for Developers - Real Threats - Practical Defense | PDF",549,22,[147,151,155,159,163,167,171,175,179,183,187,192,197,202,207,212,217,222,227,231,235,240],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/2add294068af8adecf9cfbd679510969.webp",983,1299,{"page_no":14,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/3af175a6ed22442591ed45285482e9c6.webp",982,1297,{"page_no":81,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/c16fd2ea34812520451c030d791b51d0.webp",981,1296,{"page_no":19,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/69bc5c3cbf3382bf5b827162c999c0c9.webp",980,1295,{"page_no":24,"url":164,"width":165,"height":166},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/c517ff0b3eeaee09698cadea73d0bc40.webp",979,1293,{"page_no":29,"url":168,"width":169,"height":170},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/1978d7546da8e53fc19acd0bda8925be.webp",978,1292,{"page_no":34,"url":172,"width":173,"height":174},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/9983f77a661a2c96459c8d42e86a6a7f.webp",977,1291,{"page_no":39,"url":176,"width":177,"height":178},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/dd59c0643ff94cc4272e9e66d807e0a8.webp",976,1289,{"page_no":44,"url":180,"width":181,"height":182},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/faee0b8950f12434ed80fbb60bfbd51b.webp",975,1288,{"page_no":52,"url":184,"width":185,"height":186},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/3305d0ebad43f622a9b8a266f060831d.webp",974,1287,{"page_no":188,"url":189,"width":190,"height":191},11,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/264bc00a2b9d51f6e8a32f7fac9937db.webp",973,1285,{"page_no":193,"url":194,"width":195,"height":196},12,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/f318f33bbc2a36029750ba0e4172a075.webp",972,1284,{"page_no":198,"url":199,"width":200,"height":201},13,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/34db30ffcc01666a97380be24fdb3577.webp",971,1283,{"page_no":203,"url":204,"width":205,"height":206},14,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/52df13489279a20cb431c2f87d5a9e82.webp",970,1281,{"page_no":208,"url":209,"width":210,"height":211},15,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/3f12f8b8b1d045c2d1d0f3cb3adb6aa6.webp",969,1280,{"page_no":213,"url":214,"width":215,"height":216},16,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/a248ec341cba618dacf1e21db590f876.webp",968,1279,{"page_no":218,"url":219,"width":220,"height":221},17,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/ee756d48c61f7da1cc42d617f1edb27c.webp",967,1277,{"page_no":223,"url":224,"width":225,"height":226},18,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/cc893b7d5e571a9b8765e59b59f9f261.webp",966,1276,{"page_no":56,"url":228,"width":229,"height":230},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/d35a8c79daf672ca7929ae5f38c10f4d.webp",965,1275,{"page_no":46,"url":232,"width":233,"height":234},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/2c28b34f24c8b91775e7f187ccb699bc.webp",964,1273,{"page_no":236,"url":237,"width":238,"height":239},21,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/6204f29120cb4b2d77040f66368b08a9.webp",963,1272,{"page_no":145,"url":241,"width":242,"height":243},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/6f271f3d34d969d86f96ad03d94d287b.webp",962,1271,{"list":245,"token":66},[246,253,259,265,271,277,283,289,296,302],{"doc_id":247,"doc_title":248,"file_type":137,"home_preview_img_url":249,"slug":250,"view_count":251,"category_name":30,"create_tm":252},42906,"Black Hat Python Python Programming for Hackers and Pentesters","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229796198277/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110439&Signature=gujJgmOPxczUeLFAVi0JcoZ6HnU%3D","black-hat-python-python-programming-for-hackers-and-pentesters",34,1783373187,{"doc_id":254,"doc_title":255,"file_type":137,"home_preview_img_url":256,"slug":257,"view_count":34,"category_name":30,"create_tm":258},689176,"The Linux Command Line - 2nd Edition - A Complete Introduction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001529949/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110439&Signature=AmWNCAgNGIfEsldsGs5BhX7ZqAs%3D","the-linux-command-line-2nd-edition-a-complete-introduction",1794098405,{"doc_id":260,"doc_title":261,"file_type":137,"home_preview_img_url":262,"slug":263,"view_count":81,"category_name":30,"create_tm":264},703236,"Web Application Security Guidelines - Botswana Communications Regulatory Authority","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230013474305/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110439&Signature=VV9d6ZIDbwBG5Ebt4DuscXE0Rb8%3D","web-application-security-guidelines-botswana-communications-regulatory-authority",1794563711,{"doc_id":266,"doc_title":267,"file_type":137,"home_preview_img_url":268,"slug":269,"view_count":193,"category_name":30,"create_tm":270},179332,"Detect SQL Injection Vulnerabilities using DSSS","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229876539194/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110439&Signature=vnQSho5%2FqW%2BklBHKv2Ah93DQfsY%3D","detect-sql-injection-vulnerabilities-using-dsss",1788336436,{"doc_id":272,"doc_title":273,"file_type":137,"home_preview_img_url":274,"slug":275,"view_count":34,"category_name":30,"create_tm":276},699337,"Menlo Agent Runtime Security (MARS) - White Paper","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010898804/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110439&Signature=QSWwVPYnG3XvQcOeuEqsNs9mb5M%3D","menlo-agent-runtime-security-mars-white-paper",1794464928,{"doc_id":278,"doc_title":279,"file_type":137,"home_preview_img_url":280,"slug":281,"view_count":203,"category_name":30,"create_tm":282},202967,"Trustwave SpiderLabs - Red Teaming - Intelligence-Led Attack Simulations","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229882908913/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110439&Signature=OPc%2Bqp1N0kDxDPCNFHdYgQPXBhE%3D","trustwave-spiderlabs-red-teaming-intelligence-led-attack-simulations",1788552965,{"doc_id":284,"doc_title":285,"file_type":137,"home_preview_img_url":286,"slug":287,"view_count":145,"category_name":30,"create_tm":288},179118,"CEH-Handbook-v6 - Certified Ethical Hacker","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229876937760/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110439&Signature=pdFKFdNRbQcmEtlgsCgr9UdTggQ%3D","ceh-handbook-v6-certified-ethical-hacker",1788335492,{"doc_id":290,"doc_title":291,"file_type":137,"home_preview_img_url":292,"slug":293,"view_count":294,"category_name":30,"create_tm":295},31678,"Prompt Injection in Large Language Model Exploitation: A Security Perspective","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229746450765/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110439&Signature=olHtoEjGR7SzZ5aCA%2FA9o7NMByg%3D","prompt-injection-in-large-language-model-exploitation-a-security-perspective",61,1779915635,{"doc_id":297,"doc_title":298,"file_type":137,"home_preview_img_url":299,"slug":300,"view_count":19,"category_name":30,"create_tm":301},703238,"UNIT 13 - FUNDAMENTALS OF WEB APPLICATION SECURITY AUDIT","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012272353/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110439&Signature=moxVTt17z6v%2FuAKB%2BZVm9eWjFSw%3D","unit-13-fundamentals-of-web-application-security-audit",1794563716,{"doc_id":303,"doc_title":304,"file_type":137,"home_preview_img_url":305,"slug":306,"view_count":307,"category_name":30,"create_tm":308},179246,"Hacking Webservers - Module 12 - Ethical Hacking and Countermeasures","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229876985963/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110439&Signature=L2P9USBrq%2FLkVSAaLPpH%2F48vU0Y%3D","hacking-webservers-module-12-ethical-hacking-and-countermeasures",23,1788336069]