Addon Domain Spamming With Wordpress and Any Other CMS
I got this question from Primal in regards to my post on Building Mininets
Eli,
I like the post and your entire site. Thanks for sharing your knowledge. One thing confuses me about this particular tactic. Where are you getting the content from? You mentioned Audioscrobbler and Youtube API but I am not focusing on a music niche. The “widely available car db” sounds more like something I could use. Can you say where you would get something like this from? Also is there any reason why I should use customized pages instead of a CMS like Wordpress to generate these kinds of sites?
Upon a glancing read this question seems to focus too much on the exact example used in the post. Yet if you really read the multipart question thoroughly and get to its core it’s a FANTASTIC question that really needs an answer in more depth than what I would put in a comment response. The mininet building post isn’t about how to use APIs and RSS feeds to get content. Nor is it about creating a custom CMS or doing multiple installs of the same site structure (I covered that in depth in my SEO Empire post and called them ANT Scripts). The real down to brass tax gem behind the technique is understanding how to do Addon Domain Spam via environmental variables such as HTTP_HOST to create a lot of sites from a single install of ANYTHING. I’m absolutely a firm believer that addon domain spam is the future of webspam. Subdomains had their day and now its time for figuring out creative ways to create a ton of unique sites from a single platform. This doesn’t always have to be done through addon domains and as mentioned in the comments can be done through other ways such as editing the httpd.config. For now though I wanted to focus on the basics such as using addon domains and if you’d like to go cheap about it subdomains, and let the SEO ingenuity naturally evolve from there.
To answer your question yes you can use databases to help with the content for these sites. Check out my Madlib Sites post for some great ideas on how to accomplish that and use databases. As for the second part YES you can use other CMS’ such as Wordpress!
How To Use Wordpress To Do Addon Domain Spam I got several emails from people asking how to create a wordpress plugin to accomplish this technique as well as a comment from the longtime reader PhatJ. I realize at first thought this sounds like a complicated process to be able to convert wordpress over to being able to read multiple addon domains and treat them as multiple installs and probably require some sort of plugin being created, but as with most things the simple solution is often the best.
The easiest and most effective way to convert any CMS to be used for addon domains that I’ve found is to simply edit the config files. No joke, that’s seriously usually all it ever takes. In my wordpress wp-config.php file I grabbed the line that declared the database:
define(’DB_NAME’, ‘database1′);
I replaced it with a simple IF ELSE statement to check for the domain and define the appropriate database:
**if ( $_SERVER[“HTTP_HOST”] == ‘domain1.com’ ) { define(‘DB_NAME’, ‘database1’); } elseif($_SERVER[“HTTP_HOST”] == ‘domain2.com’){ define(‘DB_NAME’, ‘database2’); }else { define(‘DB_NAME’, ‘database1’); } **
Then I just pull each database in the browser or mass wordpress installer script and setup each blog as if it was separate.
To show you it in action I put up a single Wordpress install on a subdomain on Bluehat. I then added a second database and put that code into the wp-config.php. Looking at each you’d have no idea they were a single wordpress install. See for yourself
Domain 1: http://addtest1.bluehatseo.com Domain 2: http://addtest2.bluehatseo.com
Thanks for your question Primal!
Comments (877)
These comments were imported from the original blog. New comments are closed.
Everything is really great with this article, but I really miss new updates for this site.
This is one of the best gray hat seo blogs on net, but some updates would be awesome.
My sentiments exactly.
Rob @ Click to learn how to how get ffl license first time.
where are you Eli? we NEED YOU.
Rob @ Click to learn how to get an ffl license first time.
I’m sure you are just here to get link juice as well?
Rob @ Click to learn how to get the ffl license first time.
There is one refinement that you can make to this suggestion that will eliminate the need to make any additional changes when you add any additional domains.
Simply replace any table_prefix usage in wp_config.php with the following:
$table_prefix = ereg_replace(’^(www.)’, ‘’, $SERVER[’HTTP_HOST’]); $table_prefix = ereg_replace(’.’, ‘’, $table_prefix); $table_prefix = ereg_replace(’-’, ‘’, $table_prefix); $table_prefix = $table_prefix . ‘_’;
And I’d also suggest using mod_rewrite via .htaccess to make sure you only utilize the www. version of your domain. So, in the situation that you add anewsitefromme.com, the database tables will all be prefixed with wwwanewsitefrommecom_ and WP will be nice and happy with a “new install”.
Rather than all those (potentially hundreds/thousands of) if/else statements, wouldn’t it be more feasible to name your database after the domain names and simply call that?
EG:
I think that is a narrow minded approach. Eli has done a great job helping newbies and Gurus (no offence but you seem to count yourself in) with equal dedication.
Readers love him for his work and I don’t see any reason why he would give that away at all.
Precisely. Eli’s articles are revealing to any newbie internet affiliate looking for advice on the net.
Rob @ Click to learn how to how to get ffl license first time.
Thats nice Post. As i am setting up Dodge Neon SRT-4 site, i was really thinking how to create addon domains.
This helped me a lot. Thank you.
i’m just curious why you wouldn’t use Wordpress MU at that point, since you can use a single wordpress install to host a gazillion domains
loving the recent posts, keep em up
@incestman
lmgtfy.com/?q=add-on+domains
Add ons are stand alone domains that pretty much all point to the same sever. For example: incestman.com and incest-man.com (two different domains)
subdomains would be homo.incestman.com inbred.incestman.com (all with the same actual domain name)
HA HA HA! This is the funniest post I have read yet. Not only was that the first time I have seen lmgtfy.com… The subtle variation reference to his name killed me. It feels good to laugh.
-=JFK=-
Now I understand.
Rob @ Click to learn how to get ffl license first time.
very true woodscrews. The dot coms are getting hard to find. Predictive methods are best.
Rob @ Click to learn how to get ffl license first time.
With WordPress MU you can also go the route of using individual domain names with the domain mapping plugin thats available.
On that note (I stand to be corrected here) if you go back to the standard single WordPress install you can run one database, on set of install files and multiple sites just by using the WordPress table_prefix.
The following is taken from standard config file
/** * WordPress Database Table prefix. * * You can have multiple installations in one database if you give each a unique * prefix. Only numbers, letters, and underscores please! */ $table_prefix = ‘wp_’;
I am going to learn this……but I don’t have much server admin. and permissions experience.
Do you think a MediaTemple / VPS / Plesk server would be a good place to start?
I only ask because scripting add on domains, a single DB, and a public / default folder accessed by multiple domains seem like big hurdles with their setup.
I know….totally off the main focus but any suggestions would be greatly appreciated.
Maybe I’m wrong, but I’d say that if you can’t afford your own dedicated server, you should probably not be trying to do tactics Eli is suggesting.
You can get a good starter server at $100/m just about anywhere.
If you use WP, simply use a plugin to generate it.
However XML sitemaps don’t provide any advantage to small sites (like most mininet-sites) XML sitemaps are usefull for large websites where you want the search engines to (re)index changed and new pages. And they provide something to gain when your site isn’t crawlable properly (read: flash navigation (although it’s gotten better lately)), but WP doesn’t have that problem.
You can do what Eli is talking about on shared hosting, I have
Set up one wordpress install in /var/www/siteone.com (or whatever you call it in your hosting) for www.siteone.com. For domain number 2, say www.sitetwo.com just add the domain and change its webroot to /var/www/siteone.com
Both domains will use the same code base. Make the adjustment Eli mentioned and it will work with no trouble at all.
It sounds more complicated than it is
Oooops.
Sorry comment above was for Tommy
Berko,
Thank you for the advice! I will give it a try.
Here’s a thought as to why WordPress isn’t a good idea, but raw and rough coding shown in the previous post is.
WordPress is a resource hog. Every new plugin feels like it needs to talk to the world and then some. But even without plugins there will be plenty of overhead. Once you start hitting any significant amount of overall traffic you will need more resources. With my WP blog only getting a handful of visitors my old dedicated server practically choked. P4, 1GB RAM - you would think this would be enough for a simple blog…
Next point - security. Imagine you install version 2.x and then 2.x+1 security release comes out, when you don’t have time to update or something. Having a proprietary coded scripts that don’t have any admin/login/control center is much easier to secure and maintain then WordPress.
Last, but not least - Google treats subdomains as sub-directories, so you might as well save yourself a trouble and not worry about DNS set up.
Vlad, obviously you have not looked into the various methods to enable caching in wordpress. I would also bet dollars to doughnuts you are still running Apache.
Wordpress security issues can be mitigated with a proper execution environment (ie chroot jail), active auditing of system logs (i like Splunk) and regularly scheduled system updates.
Eli, as you know I have been using wordpress as my primary CMS platform for my own empire. What you may not know is I have always been using a single ‘install’ of wordpress to host dozens domain names (per server).
I will quickly bang out a post about how I pull this off using nginx+fastcgi+wordpress mu…including a section that specifically documents multiple methods of caching that can be deployed to alleviate most of the I/O and system load caused by mysql querying.
Hi Eli,
What did you mean when you said subdomains have had their day? Will a large volume of sites on subdomains of a single domain not rank well? Even if they are spread across a few IPs?
Just wondering how to best go about this type of thing, because, as you said - buying domains for each gets expensive initially.
Clever !!! I will try to adapt that for Drupal. For drupal, the database connection is not manage with a constant var (aka, not via a define), but with a “normal” variable ($db_url)
I will try to add your “if” on the setting.php file and check if it’s working…
Thank you, i will tell you later if it works.
Hello,
This is very important article and I must say you give genuine, and quality information for bloggers. Great job!
Thanks for the great info on all of your Bule Hat posts.
Todd Bird Feeders
A much easier way that doesn’t require to create extra databases or edit the wp-config.php for every domain would be changing
$table_prefix = ‘wp_’; to $table_prefix = ‘wp_’.md5(preg_replace(’#^www.#’,’’,$SERVER[’HTTP_HOST’])).’’; (change the weird single quotes to the normal ones)
That way you can just point the domain to the same files, and it’ll work with no extra steps - going to the domain will ask you for blog title & admin email, and after submitting will give you the password.
Hello, Just wanted to say great job with the blog, today is my first visit here and I’ve enjoyed reading your posts
Happy New Year !!
Great post. I have to agree with you, spammers are becoming more clever as we speak and are always finding new ways to spam, and addon-domain spamming may just be the future.
Happy new year as well.
Why not use .htaccess to redirect header http requests on the root instead of the inside cms?
Doing so will minimize the resources needed and the load generated by wordpress.
My 2 cents.
Uhh you’ve got me confused there with the “Addon Domain Spam”. Isn’t spam something negative? I already use a lot of Addon Domains with Wordpress installations on a single hosting account and I’ve always wondered if that has a negative impact on my SEO.
Anyone? I really am interested.
Fantastic tip, I currently run a large number of wordpress sites and the auto update doesn’t work for me.
With your tip I can run them from one install and save myself a whole day of ftp transfers each time I have to upgrade them.
This is going to be such a boon for me.
Okay, so addon domains might be another domain entirely (this is common sense), but don’t they always share the same IP as the account they share?
Or should i even be concerned about IP addresses? I have one account that has 103 add-on domains and I think so far Google has indexed all of the domains. (They are all two years old)
Well played Eli. Well played. You’ve got game while the rest of us got lame.
In all seriousness - thanks for the helpful posts.
Walter
Can some advise on this.
My hosting provider uses Control Panel. I have multiple websites acting as “microsites” working on particular keyword areas etc. If I open the one hosting account and use “Addon Domains” to hosting multiple domains. Will this have a negative impact on my SEO work.
The reason I ask is that I read somewhere on here that hosting multiple websites on the same domain could be considered domain spamming.
From a strictly SEO point of view - does it make a difference if I use the “addon domain” feature or use independant hosting accounts for each site.
I’ve already had the discussion on “just use the one site and optimize it properly” and I don’t want to make the post too long by going over my reasons for doing this.
How about just writing one’s own content based on hard earned knowledge or hard won skill.
Is that too passe a concept, guys?
With the knowledge you have why try to outguess Mr. Cutts. You are just in the long run going to end up as outlaws.
Your work with self combust overnight and you will be banned to boot.
Beth
My favorite hobby shop:
ToysPeriod is a leading online shop specializing in lego sets and model railroad equipment.
Hey Eli;
I doubt that you still read thru all the spam comments on this blog, but if you do, please log in to WF and ban some ‘tards please – they are selling email accounts and ebooks all over the place. After Nickygates, I feel like Jesus with the money lenders over there.
Thanks Man, Art Deco
i think the author is trying to give new horizon thanks for sahring
cheers telecom and mobile internet
Thank you for taking the time to post such an awesome and informative article. It has given me a lot of inspiration. look forward to more posts like this in the near future!
Regards,
Mohamed.
Hi Eli,
Thanks for this nugget, it’s sweet having multiple WP sites powered by one set of files and one wp-config…
One issue I’m running into tho is with simple things like Google Analytics code. For example if I have 3 sites using the same template, I’d usually have 3 WP installs in 3 seperate folders and the GA javascript in the header of each WP template file. Now with this setup I’m using the same template for all 3 sites using 1 set of template files, so I’m having to write an IF statement which checks the host and changes the GA code based on the host. This seems pretty unscalable so I’m wondering if you have any other includes/configuration files you use to adjust settings for each site?
a good article about domain spamming….
ThanX buddy
This is a great post. Thanks a lot. I’m sure a lot of your users are not web developers by trade and I have a hard time keeping up with the internal architecture of CMS’s. This was really clear and easy to take advantage of.
brown betty teapot
Thanks! I have few Wordpress blog and this should come in very useful. Great post.
Thanks.
The good feature of add domain if you have control penal and then you can used it feature. The minuet build post isn’t about how to use APIs and RSS feeds to get at ease. Nor is it about creating a custom CMS or doing several installs of the same site constitution.
Australian Detox
Nice thanks for sharing this idea, i think i should give it a try and see how it goes:D
Keep on posting interesting seo related content.
Cheers
Arse. I posted some code but it didnt come out. Try again:
Rather than all those if/else statements, wouldn’t it be better to name your databases after the domain name?
EG:
define(’DB_NAME’, substr(str_replace(’.’,’’,$_SERVER[”HTTP_HOST”]),’0′,’64′);
Hi,
Thanxs Eli to rise such a interesting question. For this i could have come to know many things like how to do Addon Domain Spam via environmental variables etc. Hope in future it’ll be very helpfull for me.
Thanxs & Regards Belmont
if ( $_SERVER[”HTTP_HOST”] == ‘domain1.com’ ) { define(’DB_NAME’, ‘database1′); } elseif($_SERVER[”HTTP_HOST”] == ‘domain2.com’){ define(’DB_NAME’, ‘database2′); }else { define(’DB_NAME’, ‘database1′); }
—Thanks to this code. It gave me an idea. All I need to do is to change the code. Thanks to this it helped me.
WWW.sheega.com
THANK YOU
Very useful article to get great results
Imeye keyword research tool
nice blog it is…
great content.. keep rocking..
This is a really helpful post. Very informative.
Thanks a lot!
Carol @ omaha air conditioning
ThanX Eli…
great post. Wordpress is gaining popularity very rapidly and developers, these days, are using it not only as a blog system but also as a full fledge CMS for creating various kinda portals like Shopping Carts, Classified themes, Magzine websites etc..
ThanX once again… Keep Rocking,,,,
i would think that a single line of text on a page would get crawled but how many times would it get pinged?
what’s the best part of creating 2 pages if you’re not going to add content?
excellent info in domain spamming in wordpress…
keep it up.
Nice post! But little worried as my blog is acting wierd after adding this plugin.
I have downloaded this and uploaded to my server and then added it into wp-admin/plugin. But i don’t know what problem my blog is getting. It is opening fine sometimes but most of the times its taking too much time to load.
Can it be some other problem??
I am officially threatening to spam your blog on a daily basis if you don’t write part 2 of seo empire…
do it.
i don’t see how making such sites would help anyone.. infect i am a big believer that websites that don’t update themselves regularly with new posts and visitors don’t count as much.
Also i truly hope Google see a long standing white hat web marketing techniques as evidence of a real site of a real business since this is what a real business would do in the real world.
Nevertheless.. i keep finding your post insightful, Thanks.
Spamming is to be a voided at all costs. it may seem like an easy way out but spamming always do a lot of damage to your credibility. it also brands you as a spammer. with this label, your efforts will be for nothing.
Online Health Sciences Degrees
Really good Post..appreciate your work..
Thanks and regards, Mark Seer
Yes, I agree. Google pagerank alg keeps changing.That was actually a good idea. But i guess it would be best if you will make a step by step process so that it will we more easy for the beginner…..basically SEO is very helpful for getting any kind of info. it is going to be common with the passage of time….
at last nice blogs……
Yes, I agree. Google pagerank alg keeps changing.
Reply
That’s a great idea that you expose here. I will try to have it working with Joomla!
Keep on publishing the good articles!
Hey guys , if you want to learn seo search engine optimization tutorials
step by step then simpally refer OnlineGoogleSeo.comhere .. all
black hat techniques are here also as well
A neat trick, to use two databases & change them depending on the URL. The trick from Powerful Websites is also quite good, as it prevents a lot of “if.. else” if you want tow have more than two sites.
However, if the traffic to the different sites is significant, I’d separate those sites. Set up a reseller account somewhere and split the sites! If the traffic is moderate to low, however, this can be a solution to host several sites in one single place.
Wow you’re great man thanks for sharing this. i never thought i can make 2 or more sites with just one wordpress installation, i mean directory/files are the same the only difference is the database. thanks very great post!
Regards,
Daniel
yup, back on this blog again, here to tell you i just signed up for your aff. ntwrk, it seems you have few nice ones there for ppc., let’s get crackin….
btw nice to read same post…again LOL
You have an excellent SEO site. You might want to tell your subscribers about this great new SEO tool from Google. It is called Google Website Optimizer and can be found here at google.com/analytics/siteopt/exptlist?account=21700762 You can create experiments within the google interface for very good SEO results.
Keep up the good work!
Paul
Hi !!!! Thanks a lot !!! for share this information with us Grettings from Chile
Pablo
Well, I got sucked into this post… was looking for more tutorials on scraping, bad link on the last one, just when it was getting good.
Overall, lots of interesting reading, so I’ll be back.
Nice find.
You can even keep using a single database, and just change the prefix used by every domain.
Out of curiosity, why are so many of the comments… not commenty?
Well, I can say this. I’m quite glad I accidentally found your blog, and would love to imagine it would help me, but at this point I’m still banging on the keyboard tryina figure out how all the letters come out (well, not really). In any case I’ll have to log this for future use!
I like your way of writing, You break it down nicely. Keep these informative post coming! much appreciated!… thanks
have a great day
I love wordpress.. Thanks for nice post
Do follow list PR 7 Blogs SEO
I like your post. Thank you for sharing.
IT outsourcing companies
Amazing… Fabulous… Fun… Personalized GIFTS… Turn Your Yourself Into 3D Figurines Hand-Sculpted To Look Like YOU !!
Your sick and tired of giving away the same old fashioned gifts to your loved ones, friends and family members? Do you go wandering from shop to shop looking for that extra special gift that will leave a lasting impression on Christmas, Valentine, Birthdays, Bachelorettes, Weddings ,Anniversaries ,Mothers day, Fathers day, Bosses day, Sports Events, Parties, Graduation, or any other occasion?
Well search no more, and surely stop wondering!
Welcome to Mini Me Kart; a brand new concept that will mark the start of an everlasting trend: Mini Me’s! What started some years back with Austin Powers in one of Hollywood’s most acclaimed movies is now at your reach!
If you use WP, simply use a plugin to generate it.
However XML sitemaps don’t provide any advantage to small sites (like most mininet-sites) XML sitemaps are usefull for large websites where you want the search engines to (re)index changed and new pages. And they provide something to gain when your site isn’t crawlable properly (read: flash navigation (although it’s gotten better lately)), but WP doesn’t have that problem.
@John
I really agree
This is a great inspiring article. I am pretty much pleased with your good work. You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post.
Flushed Color Dispersions
Hi
we remove you complaint form consumer sites /Consumer Forum
for more info call on 07838888080 or mail hemant@bol7.com