Manufacturers release updates to patch the exact security holes (like the .shtml vulnerability) that these dorks exploit. Check the Official Manufacturer Support page for your device.
If you own an IP camera or baby monitor, you must take steps to ensure it doesn't end up in these search results: inurl+view+index+shtml+bedroom+link
Google Dorking, or Google Hacking, involves using advanced search operators to find information that is not meant to be public but has been indexed by search engines. Manufacturers release updates to patch the exact security