Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Ezilon Directory   ClickBooth Network   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 07-15-2006, 06:54 AM   #1 (permalink)
Contributing Member
 
helloworld's Avatar
 
Join Date: 06-29-06
Posts: 72
iTrader: 0 / 0%
Latest Blog:
None

helloworld is liked by somebodyhelloworld is liked by somebodyhelloworld is liked by somebodyhelloworld is liked by somebodyhelloworld is liked by somebody
Adsense / SEO script

I decided to post a small script, maybe it will be helpful for some.

First of all let me say this script is not ment to spam, it's ment to serve as a tool to help better target ads for adsense, and possibley improve search engine rank if used properly.

"If abused I am sure it could damage your S.E rank"

Step 1 - botcheck.php
Code:
<?php /// © Copyright 2006 "http://www.gostubby.com" DO NOT REMOVE!/// ///Bot names/// $bots = array('Googlebot', 'Yahoo! Slurp', 'msnbot', 'Mediapartners-Google'); ///////////// $any = implode('|', $bots); ///Is it a bot?/// if (preg_match ("/$any/i", $_SERVER["HTTP_USER_AGENT"])){ include "botcandy.html"; } ?>
Step 2 - Create another file "botcandy.html"
This file will contain any html / text you want added
it should be relevent to your website in order to obtain targeted ads.

Step 3: include it in the problematic page to target ads.
Code:
<?php require("botcheck.php");?>
Most of the time your ads are not targeted because google isn't quite sure what your site is about!

What happens is whenever the google bot visits your website it will see a little something extra that your visitors don't see.

Do remember keep the content within the botcandy.html file " spam free " maybe something along the lines of a few paragraphs discribing your website.

It may take awhile before the google bot returns to your website.

To test if the script is working just find any search engine simulator, and enter it's agent name in the above script array.
helloworld is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Script to make dynamic Adsense parking page? Comenius Web Design Lobby 2 04-07-2007 07:18 AM
Where should I place the Adsense script? tigermann Contextual Networks 4 06-10-2004 06:41 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 01:40 PM.
© Copyright 2008 V7 Inc

Click Here