Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Old 2008-08-03, 04:47 PM   #1
LD
wtfwjd?
 
LD's Avatar
 
Join Date: May 2007
Posts: 2,103
Question 404 Trap ads

Many sponsors provide a link code for a "404 Trap ad". I think I know what this is supposed to do, but I am not sure where to put the link. Do I install this on my host server somewhere?
__________________
Artisteer Wordpress Theme Generator Create Custom Themes!
My Little Network
LD is offline   Reply With Quote
Old 2008-08-03, 04:50 PM   #2
cd34
a.k.a. Sparky
 
cd34's Avatar
 
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
Typically, you do something like

Code:
ErrorDocument 404 http://url.com/withreferreringcode
in your .htaccess
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote
Old 2008-08-03, 05:11 PM   #3
LD
wtfwjd?
 
LD's Avatar
 
Join Date: May 2007
Posts: 2,103
Ahhhh.....good ol' .htaccess.

Thanks! (ps, and it's working... )
__________________
Artisteer Wordpress Theme Generator Create Custom Themes!
My Little Network

Last edited by LD; 2008-08-03 at 05:16 PM..
LD is offline   Reply With Quote
Old 2008-08-03, 08:20 PM   #4
justbondage
I want to set the record straight - I thought the cop was a prostitute
 
justbondage's Avatar
 
Join Date: Jun 2008
Posts: 293
How do search engines feel when they spider a sitemap, come across a 404 and go to another site?

I have no real reason to think it, but I would assume something like that would have a negative effect on how search engines look at your site. Does anyone know either way?
__________________
TOF - Post your galleries
JB - Post bondage stuff

ICQ - 424617189
justbondage is offline   Reply With Quote
Old 2008-08-03, 09:04 PM   #5
Tekster
Formerly known as TekAngel
 
Tekster's Avatar
 
Join Date: Feb 2007
Location: Valley of the Sun
Posts: 1,951
Send a message via ICQ to Tekster
How about making your own 404 page? I think that would work better. Any thoughts?
__________________
Mr. Eros Free Porn Links
iPhone Porn Phone-Pics
Tekster is offline   Reply With Quote
Old 2008-08-04, 09:43 AM   #6
balls_deep
If you really need money, you can sell your kidney or even your car
 
balls_deep's Avatar
 
Join Date: Apr 2007
Posts: 374
Quote:
Originally Posted by TekAngel View Post
How about making your own 404 page? I think that would work better. Any thoughts?
You will always have more success making your own 404 pages, at least a surfer hasn't seen it before.
balls_deep is offline   Reply With Quote
Old 2008-08-04, 04:26 PM   #7
Useless
Certified Nice Person
 
Useless's Avatar
 
Join Date: Oct 2003
Location: Dirty Undies, NY
Posts: 11,268
Send a message via ICQ to Useless
Maybe a sponsor could give you a toolbar installer while you're at it.
__________________
Click here to purchase a bridge I'm selling.
Useless is offline   Reply With Quote
Old 2008-08-05, 03:15 AM   #8
poornpig
Rock stars ... is there anything they don't know?
 
Join Date: Aug 2008
Posts: 16
If the 404 Error Page is set up in the .htaccess, the request returned already a 404.

For a crawler of a searchengine it would look like this:

Host example.com
GET /something.html HTTP/1.1
-> 404

<html>
....

Now it is the question if the crawler fetches the 404 error page. I have not noticed, that google or yahoo are doing this.
Google does it only if you use the webmaster tools and verify your domain. This is to check if your server does return the 404 correctly.

A normal client (not everyone) would see the same as above but it would render the html send by the webserver.

this would be the 404 error page, which is send by the webserver.

Now i could ask why do you have 404? is it good not to dispaly an error message?
poornpig is offline   Reply With Quote
Old 2008-08-05, 04:47 PM   #9
virgohippy
Madness is like gravity. All it takes is a little... push.
 
virgohippy's Avatar
 
Join Date: Feb 2006
Location: California
Posts: 1,679
I prefer to turn off indexes in htaccess:

Options -Indexes

and let the error message display. If I accidentally delete a submitted page from my server I'd rather a reviewer see a 404 error then redirect.
__________________
~Warm and Fuzzy.
virgohippy is offline   Reply With Quote
Old 2008-08-06, 09:15 AM   #10
LD
wtfwjd?
 
LD's Avatar
 
Join Date: May 2007
Posts: 2,103
Thanks for the info....I like the idea of making my own. I have the sponsor one up for now, but want to make one on my own domain. I am thinking of something like a "whoops" page with a small directory of links back to categories on my list. If anyone has one to show me to get some ideas, I would love to see one.
__________________
Artisteer Wordpress Theme Generator Create Custom Themes!
My Little Network
LD is offline   Reply With Quote
Old 2008-08-06, 10:59 AM   #11
Lemmy
You can now put whatever you want in this space :)
 
Lemmy's Avatar
 
Join Date: Sep 2004
Location: Next door to a kid with a moped.
Posts: 1,492
Quote:
Originally Posted by LusciousDelight View Post
Thanks for the info....I like the idea of making my own. I have the sponsor one up for now, but want to make one on my own domain. I am thinking of something like a "whoops" page with a small directory of links back to categories on my list. If anyone has one to show me to get some ideas, I would love to see one.
Here's how I do it on Quantum Porn and Planet Of Porn.

I've also experimented with redirects to sponsor, but it hasn't produced much in the way of sales.
__________________
BUY MY PORNSITES!
Lemmy is offline   Reply With Quote
Old 2008-08-06, 12:02 PM   #12
LD
wtfwjd?
 
LD's Avatar
 
Join Date: May 2007
Posts: 2,103
Quote:
Originally Posted by Lemmy View Post
Here's how I do it on Quantum Porn and Planet Of Porn.

I've also experimented with redirects to sponsor, but it hasn't produced much in the way of sales.
Very nice...especially the Quantum Porn one...

Now I have something else to work on...
__________________
Artisteer Wordpress Theme Generator Create Custom Themes!
My Little Network
LD is offline   Reply With Quote
Old 2008-08-06, 02:53 PM   #13
Mr Spock
You can now put whatever you want in this space :)
 
Mr Spock's Avatar
 
Join Date: Nov 2006
Location: Vulcan
Posts: 695
Quote:
Originally Posted by Lemmy View Post
Here's how I do it on Quantum Porn and Planet Of Porn.

I've also experimented with redirects to sponsor, but it hasn't produced much in the way of sales.
Nice Lemmy - beats the standard error page. Have you noticed any sales off your 404 pages or is it just a nice to have
Mr Spock is offline   Reply With Quote
Old 2008-08-06, 05:11 PM   #14
Lemmy
You can now put whatever you want in this space :)
 
Lemmy's Avatar
 
Join Date: Sep 2004
Location: Next door to a kid with a moped.
Posts: 1,492
No sales that I've been able to track, but if there is to be an error page it might as well have something useful for the surfer to click on.
__________________
BUY MY PORNSITES!
Lemmy is offline   Reply With Quote
Old 2008-08-06, 11:00 PM   #15
LD
wtfwjd?
 
LD's Avatar
 
Join Date: May 2007
Posts: 2,103
Lemmy, you gave me some ideas and I came up with...

http://www.lusciousdelights.com/error404.php

anything need changing?
__________________
Artisteer Wordpress Theme Generator Create Custom Themes!
My Little Network
LD is offline   Reply With Quote
Old 2008-08-06, 11:46 PM   #16
cd34
a.k.a. Sparky
 
cd34's Avatar
 
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
A potential note: If you are serving the file locally, based on the assumption that the 302 response is a bad thing to hand google for a few reasons... unintentional page scraping and potential duplicate content penalties.

So, if you do:

Code:
ErrorDocument 404 http://site.com/page
You might end up getting a dupe penalty or scraping yourself. What you really want is:

Code:
ErrorDocument 404 /error404.php
Now, when you do this, you will want to either put

Code:
<base href="http://www.yoursite.com/">
or making sure that all of your links have absolute relative links:

Code:
<a href="/file.html">
<img src="/images/file.jpg">
Then, when you test things, make sure you do test a number of urls:

Code:
http://yoursite.com/asdfsadf
http://yoursite.com/asdfasdf/asdfasdf.html
http://yoursite.com/asdfasdf/asdfasdf/asdfasdf.html
What you want to check for here is to make sure that all links work, mouseovers, etc from each of the above paths.
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote
Old 2008-08-07, 12:36 AM   #17
Useless
Certified Nice Person
 
Useless's Avatar
 
Join Date: Oct 2003
Location: Dirty Undies, NY
Posts: 11,268
Send a message via ICQ to Useless
Quote:
Originally Posted by cd34 View Post
What you want to check for here is to make sure that all links work, mouseovers, etc from each of the above paths.
What if I want a 404 page that creates more 404s?
__________________
Click here to purchase a bridge I'm selling.
Useless is offline   Reply With Quote
Old 2008-08-07, 07:31 AM   #18
Lemmy
You can now put whatever you want in this space :)
 
Lemmy's Avatar
 
Join Date: Sep 2004
Location: Next door to a kid with a moped.
Posts: 1,492
Quote:
Originally Posted by LusciousDelight View Post
Lemmy, you gave me some ideas and I came up with...

http://www.lusciousdelights.com/error404.php

anything need changing?
Looks good to me, you keep the traffic and give them something useful to click on.
__________________
BUY MY PORNSITES!
Lemmy is offline   Reply With Quote
Old 2008-08-07, 07:52 AM   #19
LD
wtfwjd?
 
LD's Avatar
 
Join Date: May 2007
Posts: 2,103
Quote:
Originally Posted by cd34 View Post
A potential note: If you are serving the file locally, based on the assumption that the 302 response is a bad thing to hand google for a few reasons... unintentional page scraping and potential duplicate content penalties.

So, if you do:

Code:
ErrorDocument 404 http://site.com/page
You might end up getting a dupe penalty or scraping yourself. What you really want is:

Code:
ErrorDocument 404 /error404.php
Now, when you do this, you will want to either put

Code:
<base href="http://www.yoursite.com/">
or making sure that all of your links have absolute relative links:

Code:
<a href="/file.html">
<img src="/images/file.jpg">
Then, when you test things, make sure you do test a number of urls:

Code:
http://yoursite.com/asdfsadf
http://yoursite.com/asdfasdf/asdfasdf.html
http://yoursite.com/asdfasdf/asdfasdf/asdfasdf.html
What you want to check for here is to make sure that all links work, mouseovers, etc from each of the above paths.
Thanks for that!!
__________________
Artisteer Wordpress Theme Generator Create Custom Themes!
My Little Network
LD is offline   Reply With Quote
Reply


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

Forum Jump


All times are GMT -4. The time now is 03:12 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc