How to Stop a Web Page From Redirecting to a Certain Site
The HTML meta refresh tag redirects a Web page to a specific location, including an external website. When users open the HTML page in a Web browser, the meta refresh automatically redirects the user without prompting for confirmation. If you want to stop the page from redirecting, you must remove the meta refresh tag or comment it out. The advantage of commenting out the meta tag is that you can implement it again without retyping the code.
Instructions
-
-
1
Right-click the HTML page that redirects to another website. Click "Open With" and select your HTML program.
-
2
Locate the meta refresh tag, which is typically located at the top of the HTML file. The following code is an example of a meta refresh tag:
<meta http-equiv="refresh" content="0;URL='website.com'" />
-
-
3
Delete the meta refresh tag or comment it out. You can comment out the code to stop the redirect temporarily. This option lets you leave the code in the page so you do not need to retype it in the future. The following shows you an example of how to comment out the redirect:
<!-- <meta http-equiv="refresh" content="0;URL='website.com'" /> -->
-
1