Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

print 404 header 1

Status
Not open for further replies.

1DMF

Programmer
Jan 18, 2005
8,795
GB
hello,

I've been told that to remove my site from google I need to output a 404 error.

someone said you can do this with ASP, so can someone help please.

I was going to create an index.asp that outputs 404 error, so google will remove my site via the URL Removal tool.

does anyone know how to do this please.

Thanks
1DMF

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
 
Can't you just get on your web server and rename your site something other than what it is listed in Google as??

Then when they click on your Google indexed site, they don't find your site cause you renamed it.

[monkey][snake] <.
 
no I want to remove it form the index so I can then put in a redirect.

I've deleted the site but it gives a 403 NOT 404 and google webmaster tools keeps denying site removal request.

it must be a 404 or 410 return code

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
 
This is all you need to put into your asp page.
Code:
<@%LANGUAGE="VBScript"%>
<%
   Response.Status = "404 Not Found" 
%>

[monkey][snake] <.
 
lol - it's ok I'd got it myself ;-)

Code:
<%

  response.Status="404 Not Found"
  response.Write(response.Status)
  response.End
%>

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top