How to Block Specific Domains/IP Addresses from Accessing your Wordpress and/or HTML Site
If someone is leeching your videos, images and/or bandwidth, iframing your salespage, tracking your PPC Campaigns, etc and you need to ban an entire domain or IP, here are the super simple steps.
Edit the .htaccess file in your Wordpress Root Directory. If it's HTML, create one. (Tutorial vids here)
Inside the Wordpress .htaccess file you'll find the following:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Simply add the following to the end of the Wordpress .htaccess file. If you don't have Wordpress, then the lines below are all you need.
# END WordPress
<Limit GET>
order allow,deny
deny from thedomaintoblock.com
deny from anotherdomaintoblock.com
deny from yetanotherdomaintoblock.com
deny from 66.96.251.28
allow from all
</Limit>
Add/remove "deny from" rules to your heart's content. Then save and reupload to the Wordpress Root or HTML site root.
This is what the final .htaccess file should look like for Wordpress:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress <Limit GET> order allow,deny deny from thedomaintoblock.com deny from anotherdomaintoblock.com deny from yetanotherdomaintoblock.com deny from 66.96.251.28 allow from all </Limit>
<Limit GET> order allow,deny deny from thedomaintoblock.com deny from anotherdomaintoblock.com deny from yetanotherdomaintoblock.com deny from 66.96.251.28 allow from all </Limit>
Note: This is to prevent a specific domain or IP from accessing your website completely. Do not block sites like Google, Yahoo or Clickbank!
BIG P.S. This could also work to block Keyword Discovery, Compete.com, PPC Bully and SpyFu from finding your landing pages and indexing them.
Easiest, fastest way I know, and working for countless others to create an online income.
Click Here to Watch Free Video and start learning how to really profit from the internet
[CENTER][B]==> Do you want to make money online? [/B]
Free video: How regular people are making 6-figures per month on the internet! [URL="http://www.clkmg.com/fc27/UDCL-IN2WF"][B]Watch this free video now![/B][/URL] <==[/CENTER]