Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 9th Sep 2011, 01:06 PM   #1
HyperActive Warrior
 
LakiPolitis's Avatar
 
Join Date: 2011
Location: West Palm Beach, FL
Posts: 113
Thanks: 7
Thanked 12 Times in 11 Posts
Default
Need some help with some intentional 404s.
Share on: 
fb share twitter share gplus share more share

Here's the problem. Affiliate of ours started spamming his link everywhere. Now, these spammy website all point to my domain's default page with this affiliate id parameter attached. Until I started doing SEO for this site, google was indexing these parameters... now his affiliate link (with parameter) is posted on these damn spam sites and they're posting to my domain.

I'm 100% convinced its negatively affecting my domain trust and authority. How can quickly, and effectively, send them to a 404 before my server returns anything. (Right now, I've 301ed everything with the affid parameter to a page that I intentionally haven't made so it hits a 404 - which is a pretty useful 404 page).

Any other ideas?

LakiPolitis is offline  
Unread 9th Sep 2011, 01:36 PM   #2
HyperActive Warrior
War Room Member
 
michael_gourlay's Avatar
 
Join Date: 2010
Location: New Jersey, USA
Posts: 102
Thanks: 4
Thanked 18 Times in 16 Posts
Default
Re: Need some help with some intentional 404s.
Share on: 
fb share twitter share gplus share more share

What programming language are you using?
michael_gourlay is offline  
Unread 9th Sep 2011, 03:40 PM   #3
HyperActive Warrior
 
LakiPolitis's Avatar
 
Join Date: 2011
Location: West Palm Beach, FL
Posts: 113
Thanks: 7
Thanked 12 Times in 11 Posts
Default
Re: Need some help with some intentional 404s.
Share on: 
fb share twitter share gplus share more share

asp.net VB (sadly). I normally write in asp.net C#

LakiPolitis is offline  
Unread 9th Sep 2011, 06:00 PM   #4
Active Warrior
 
Join Date: 2011
Posts: 87
Thanks: 16
Thanked 10 Times in 9 Posts
Default
Re: Need some help with some intentional 404s.
Share on: 
fb share twitter share gplus share more share

I would say you could do it in .htaccess with mod_rewrite, but I assume you are on a MS server. No clue about that. Sorry.

Need a QR Code? Check out my QR Code Generator. It's FREE!
dudeontheweb is offline  
Unread 10th Sep 2011, 05:52 PM   #5
HyperActive Warrior
War Room Member
 
michael_gourlay's Avatar
 
Join Date: 2010
Location: New Jersey, USA
Posts: 102
Thanks: 4
Thanked 18 Times in 16 Posts
Default
Re: Need some help with some intentional 404s.
Share on: 
fb share twitter share gplus share more share

I don't really know any ASP.NET or VB.NET, but this may help.

How to cause a 404 from code ?
michael_gourlay is offline  
Unread 10th Sep 2011, 10:08 PM   #6
HyperActive Warrior
War Room Member
 
ussher's Avatar
 
Join Date: 2010
Location: Tokyo
Posts: 314
Thanks: 27
Thanked 43 Times in 42 Posts
Default
Re: Need some help with some intentional 404s.
Share on: 
fb share twitter share gplus share more share

Seams to me your attacking the problem too late in the cycle.

Is the affiliate script yours? can you alter it? if so add a function to 'ban' certain affiliate id's with an exception to decide which page banned id's come up on.

Since I dont know exactly how your affiliate system works, ill take a guess. The affiliate link is clicked on which comes into your site, the affiliate id is recorded into the database and your user is redirected to the default page.

Its there between the recording and redirect where you could check and just not send anybody coming in on that link ID to your site.

If the affiliate id is not being picked up until the visitor lands on the page then its open for tampering with and i'd recommend a different affiliate script.

"Jamroom is a Profile Centric CMS system suitable as a development framework for building entire communities. Highly modular in concept. Suitable for enterprise level development teams or solo freelancers."
- jamroom.net
Download Jamroom free: Download
ussher is offline  
Unread 12th Sep 2011, 08:01 AM   #7
HyperActive Warrior
 
LakiPolitis's Avatar
 
Join Date: 2011
Location: West Palm Beach, FL
Posts: 113
Thanks: 7
Thanked 12 Times in 11 Posts
Default
Re: Need some help with some intentional 404s.
Share on: 
fb share twitter share gplus share more share

Yeah, dudeontheweb, definitely on MS servers.

ussher, thanks for you post. What I'm doing right now is:

you come in with the link: ~ areweonline.com/?affid=90898 for example.

When the master page loads up, it checks for your link in the code-behind. If the affid is present, or contains a number it simply sends you to a page that does not exist. Then ASP.net web.config customerrors drops you off at my custom 404 page.

~ areweonline.com/deadlink.aspx - which brings up my 404 page. To correct ASP.net for some reason returning a 200 when getting to this custom page, I've programmatically set it to pop a 404. It looks like I'm getting the results I want in Google Webmaster Tools. New pages are showing up with 404 errors, and they all have the affid query string.

LakiPolitis is offline  
Unread 12th Sep 2011, 09:21 AM   #8
VIP Warrior
War Room Member
 
SteveJohnson's Avatar
 
Join Date: 2007
Location: Caldwell, Idaho, USA.
Posts: 1,967
Thanks: 1,024
Thanked 2,043 Times in 1,183 Posts
Default
Re: Need some help with some intentional 404s.
Share on: 
fb share twitter share gplus share more share

You're catching the aff link way too late for the 404 to do any good. Here's your sequence (I removed all the extra header info for clarity):
Code:
http://areweonline.com/?affid=90898

(1)
Request: GET /?affid=90898 HTTP/1.1
Response: HTTP/1.1 301 Moved Permanently to: 
Location: http://www.areweonline.com/default.aspx?affid=90898
----------------------------------------------------------
(2)
Request: GET /default.aspx?affid=90898 HTTP/1.1
Response: HTTP/1.1 301 Moved Permanently to: 
Location: http://www.areweonline.com/deadlink.aspx
----------------------------------------------------------
(3)
Request: GET /deadlink.aspx HTTP/1.1
Response: HTTP/1.1 302 Found
Redirect to: Location: /404.aspx?aspxerrorpath=/deadlink.aspx
----------------------------------------------------------
(4)
Request: GET /404.aspx?aspxerrorpath=/deadlink.aspx HTTP/1.1
Response: HTTP/1.1 404 Not Found
----------------------------------------------------------
So in reality, you're telling the browser ( or Google ) that the 404.aspx page is Not Found. Not really what you're trying to accomplish.

Instead of request (2) returning 301 to deadlink.aspx, you need to return the 404 at that point and then show your custom 404 page.

The 2nd Amendment, 1789 - The Original Homeland Security.

Gun control means never having to say, "I missed you."
SteveJohnson is offline  
The Following User Says Thank You to SteveJohnson For This Useful Post:
Unread 12th Sep 2011, 09:26 AM   #9
HyperActive Warrior
 
LakiPolitis's Avatar
 
Join Date: 2011
Location: West Palm Beach, FL
Posts: 113
Thanks: 7
Thanked 12 Times in 11 Posts
Default
Re: Need some help with some intentional 404s.
Share on: 
fb share twitter share gplus share more share

The thing is that that page does exist. Default.aspx?aspjda=123123 technically exists. So how do I stop a page that exists from showing anything other than a 200?

Don't you want your 404 page to show a 404 error? If the 404 didn't have the response code 404 it would have a 200 which would start getting my 404 page indexed.

LakiPolitis is offline  
Unread 12th Sep 2011, 10:03 AM   #10
VIP Warrior
War Room Member
 
SteveJohnson's Avatar
 
Join Date: 2007
Location: Caldwell, Idaho, USA.
Posts: 1,967
Thanks: 1,024
Thanked 2,043 Times in 1,183 Posts
Default
Re: Need some help with some intentional 404s.
Share on: 
fb share twitter share gplus share more share

Originally Posted by LakiPolitis View Post

The thing is that that page does exist. Default.aspx?aspjda=123123 technically exists. So how do I stop a page that exists from showing anything other than a 200?

Don't you want your 404 page to show a 404 error? If the 404 didn't have the response code 404 it would have a 200 which would start getting my 404 page indexed.
That address exists only if you allow it to exist. You have to determine early on - before your script returns any HTML - what to do with a request.

The original request should return 404, and your server should serve your custom error page.

You can find some more information on aspx 404s here: 301 404 Error Page Redirect for SEO - McAnerin International Inc.


Another alternative is to 301 redirect those bad aff links to another address and not even worry about sending 404s, but have a 'noindex' on the destination page.

The 2nd Amendment, 1789 - The Original Homeland Security.

Gun control means never having to say, "I missed you."
SteveJohnson is offline  
Unread 12th Sep 2011, 10:48 AM   #11
HyperActive Warrior
 
LakiPolitis's Avatar
 
Join Date: 2011
Location: West Palm Beach, FL
Posts: 113
Thanks: 7
Thanked 12 Times in 11 Posts
Default
Re: Need some help with some intentional 404s.
Share on: 
fb share twitter share gplus share more share

Originally Posted by SteveJohnson View Post

Another alternative is to 301 redirect those bad aff links to another address and not even worry about sending 404s, but have a 'noindex' on the destination page.
Until I get this affids removed from the google, bing, and yahoo indexes they need to hit 404s. This isn't a website I built, I'm going through and fixing things that are wrong. I've removed this query parameters in webmaster tools across the board as not affecting content so don't index them. But until they're removed I need to hit them with 404s.

Thanks for the link, I'm checking into that.

LakiPolitis is offline  
Unread 12th Sep 2011, 01:24 PM   #12
Kernel Paniker
 
kernelpaniker's Avatar
 
Join Date: 2009
Location: Orange County CA
Posts: 22
Thanks: 0
Thanked 2 Times in 2 Posts
Default
Re: Need some help with some intentional 404s.
Share on: 
fb share twitter share gplus share more share

I think Google may be smart enough to realize that its an affiliate link and not really penalize you. Maybe this will help you out (in the future) .

Why cant you just cancel the affiliates account? That should null all their links.

Happiness is a warm gun,

Taylor

http://kernelpaniker.blogspot.com/
kernelpaniker is offline  
Unread 12th Sep 2011, 01:50 PM   #13
AloneBit
 
Geekman's Avatar
 
Join Date: 2010
Location: India
Posts: 28
Thanks: 1
Thanked 2 Times in 2 Posts
Default
Re: Need some help with some intentional 404s.
Share on: 
fb share twitter share gplus share more share

404 generally related to .htaccess and mod_rewrite. I think google is the best for solving your problem.

AloneBit
Geekman is offline  
Unread 12th Sep 2011, 01:57 PM   #14
HyperActive Warrior
 
LakiPolitis's Avatar
 
Join Date: 2011
Location: West Palm Beach, FL
Posts: 113
Thanks: 7
Thanked 12 Times in 11 Posts
Default
Re: Need some help with some intentional 404s.
Share on: 
fb share twitter share gplus share more share

Originally Posted by Geekman View Post

404 generally related to .htaccess and mod_rewrite. I think google is the best for solving your problem.
I appreciate the effort in trying to help, Geekman. But I'm using an ASP.net IIS 6 MS Server. I don't have an .htaccess file. And mod_rewrite doesn't work for me either. Anyone wanna show me how to do an ISAPI rewrite before a server response code in IIS, and they get a thanks.

On to the Google Webmaster video, I don't buy that for a goddamn second. We're told that getting links from spammy sites will mess up your ranking - if you do it. But if someone else posts you on spammy sites you won't get anything. Come on Google. You kiss your mother with that lying mouth? Spammy site links either hurt or they don't.

LakiPolitis is offline  
Unread 12th Sep 2011, 07:19 PM   #15
HyperActive Warrior
War Room Member
 
ussher's Avatar
 
Join Date: 2010
Location: Tokyo
Posts: 314
Thanks: 27
Thanked 43 Times in 42 Posts
Default
Re: Need some help with some intentional 404s.
Share on: 
fb share twitter share gplus share more share

Why send them to a 404? You've obviously got the re-direct working correctly. If you dont want the customers or think they would not possibly benefit from staying on your site, throw em straight out.

Instead of dropping them on your sites "404 nothing interesting to see here, please move along" page, Throw in your own affiliate link and send em off somewhere that might actually convert from the type of visitors that are coming in on that style of link.

A quick common thought would be one of those horrible pages that contain nothing but adsense ads. Or somewhere else if you think they are targeted enough.

"Jamroom is a Profile Centric CMS system suitable as a development framework for building entire communities. Highly modular in concept. Suitable for enterprise level development teams or solo freelancers."
- jamroom.net
Download Jamroom free: Download
ussher is offline  
Unread 13th Sep 2011, 07:10 AM   #16
HyperActive Warrior
 
LakiPolitis's Avatar
 
Join Date: 2011
Location: West Palm Beach, FL
Posts: 113
Thanks: 7
Thanked 12 Times in 11 Posts
Default
Re: Need some help with some intentional 404s.
Share on: 
fb share twitter share gplus share more share

Ussher, thanks for the advice. We built a 404 page that we're going to be doing some A/B testing on it. Right now it looks like this: http://www.areweonline.com/404.aspx

What I'm trying to correct is search engine indexing of affids. Currently a bunch of search engines have this affiliate link indexed which means people aren't actually going to the guy's site and clicking the link, rather they can find it in a search engine and he's getting credit. Before I started working on the site, all of the Webmaster tools didn't remove the URL parameter affid, so some have it indexed.

I need the search engines to remove the affid links from their index, without losing the default.aspx page. So if the URL has an affid I want it to hit a 404, so it gets removed, but I don't want to lose my default.aspx page.

LakiPolitis is offline  
Unread 13th Sep 2011, 08:32 PM   #17
HyperActive Warrior
War Room Member
 
ussher's Avatar
 
Join Date: 2010
Location: Tokyo
Posts: 314
Thanks: 27
Thanked 43 Times in 42 Posts
Default
Re: Need some help with some intentional 404s.
Share on: 
fb share twitter share gplus share more share

Yeah marginal there. Guess it comes down to your affiliate programs terms and conditions.

If I was the affiliate and I made the effort to get the search engines to include my link to your site in their results, I would want to be paid.

Same as if I purchased a google adwords add and included my link to your site in the ad. The customer is coming directly to your site, but only because of the effort that I have made to put my link in front of them.

However if the situation is someone puts in "Your Company Name" into search engine X and the result is:
"Your Company Name" with the link as "http://your-company-name.com/?affid=123456"

Then I can see how that would be undesirable.

"Jamroom is a Profile Centric CMS system suitable as a development framework for building entire communities. Highly modular in concept. Suitable for enterprise level development teams or solo freelancers."
- jamroom.net
Download Jamroom free: Download
ussher is offline  
Unread 17th Sep 2011, 03:02 AM   #18
Svetoslav Marinov (SLAVI)
 
Join Date: 2011
Posts: 211
Thanks: 20
Thanked 27 Times in 26 Posts
Default
Re: Need some help with some intentional 404s.
Share on: 
fb share twitter share gplus share more share

is it possible to get a new domain and send a notice to the affiliates to use the new domain. e.g. somenewdomain.com/?a=123 because the old ones will not work and they won't get paid.

I think there was something like mod_rewrite but for IIS

This shows how to import mod_rewrite rules in IIS
Importing Apache mod_rewrite Rules : URL Rewrite Module : Installing and Configuring IIS 7 : The Official Microsoft IIS Site

the article is for IIS 7, can you upgrade yours to IIS 7?

Are you using WordPress? Have you tried qSandbox yet?
lordspace is offline  
The Following User Says Thank You to lordspace For This Useful Post:
Unread 19th Sep 2011, 07:56 AM   #19
HyperActive Warrior
 
LakiPolitis's Avatar
 
Join Date: 2011
Location: West Palm Beach, FL
Posts: 113
Thanks: 7
Thanked 12 Times in 11 Posts
Default
Re: Need some help with some intentional 404s.
Share on: 
fb share twitter share gplus share more share

Definitely going to check out the mod_rewrite thing on IIS.

It maybe easier for us to do that. I'm just going to start giving affiliates subdomains, and it will be a more stringent approval process to become an affiliate.

LakiPolitis is offline  
Unread 26th Sep 2011, 10:25 AM   #20
HyperActive Warrior
 
LakiPolitis's Avatar
 
Join Date: 2011
Location: West Palm Beach, FL
Posts: 113
Thanks: 7
Thanked 12 Times in 11 Posts
Default
Re: Need some help with some intentional 404s.
Share on: 
fb share twitter share gplus share more share

IIS and ASP.net

LakiPolitis is offline  
Closed Thread


Bookmarks

Tags
404s, intentional, seo, server response codes


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 01:09 AM.