If the page loads normally, shows a custom 404 error, or redirects to the homepage, it is likely secure. How to Patch inurl:index.php?id= Vulnerabilities
The most basic test involves appending a single quote to the parameter: index.php?id=5' . inurl indexphpid patched