Jump to content
vBWarez - Rest In Peace

Help blocking google bots


Recommended Posts

I have Home sever running Apach 2.2 and php 5.4 in Windows 7 and I can use .htaccess to block ips all except google bots they flood my site day and night.
I get traffic from my own sources and don't need trasffic from search engines yet I get this flood of google bots

my .htaccess is this:

[CODE]ErrorDocument 404 /index.php
# htaccess custom error messages
ErrorDocument 400 "Ooops - Bad request!
ErrorDocument 401 "Speak friend and enter
ErrorDocument 403 "Daily Maintenance, please try later...
ErrorDocument 500 "Server gone wild..
Options -Indexes
RewriteEngine On

# proc/self/environ? no way!
RewriteCond %{QUERY_STRING} proc/self/environ [OR]

# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]

# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*(.*) [OR]

# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3E) [NC,OR]

# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|[|\%[0-9A-Z]{0,2}) [OR]

# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|[|\%[0-9A-Z]{0,2})

# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
# secure htaccess file
<Files .htaccess>
order allow,deny
deny from all
</Files>

# prevent viewing of a specific file
<Files secretfile.jpg>
order allow,deny
deny from all
</Files>

# multiple file types
<FilesMatch ".(htaccess|htpasswd|ini|phps|fla|psd|log|sh)$">
Order Allow,Deny
Deny from all
</FilesMatch>
<Limit GET HEAD POST>
order allow,deny
allow from all
deny from 66
deny from 1.37.0.0/16[/CODE]

Can anyone tell me I even added 66 ip range to windows firewall to block on all ports and even in peerblock to no avail.

I have a robots.txt:

[CODE]# HOW TO USE THIS FILE:
# 1) Edit this file to change "/forum/" to the correct relative path from your base URL, for example if your forum was at "domain.com/sites/community", then you'd use "/sites/community/"
# 2) Rename the file to 'robots.txt' and move it to your web root (public_html, www, or htdocs)
# 3) Edit the file to remove this comment (anything above the dashed line, including the dashed line
#
# NOTES:
# Even though wild cards and pattern matching are not part of the robots.txt specification, many search bots understand and make use of them
#------------------------ REMOVE THIS LINE AND EVERYTHING ABOVE SO THAT User-agent: * IS THE FIRST LINE ------------------------------------------
User-agent: *
Disallow: /forum/
Disallow: /forum/admin/
Disallow: /forum/cache/
Disallow: /forum/converge_local/
Disallow: /forum/hooks/
Disallow: /forum/ips_kernel/
Disallow: /forum/retail/
Disallow: /forum/public/style_captcha/
Disallow: /forum/index.php?app=core&module=task/
Disallow: /forum/index.php?app=forums&module=moderate§ion=moderate/
Disallow: /forum/index.php?app=forums&module=extras§ion=forward/
Disallow: /forum/index.php?app=members&module=chat/
Disallow: /forum/index.php?&unlockUserAgent=1/
Disallow: /forum/*&module=search/
Disallow: /forum/*&search_tags=/
Disallow: /forum/*app=core&module=global§ion=reputation/
Disallow: /forum/*app=core&module=usercp/
Disallow: /forum/*app=members&module=messaging/
Disallow: /forum/*&p=/
Disallow: /forum/*&pid=/
Disallow: /forum/*&hl=/
Disallow: /forum/*&start=/
Disallow: /forum/*view__getnewpost$/
Disallow: /forum/*view__getlastpost$/
Disallow: /forum/*view__old$/
Disallow: /forum/*view__new$/
Disallow: /forum/*view__getfirst$/
Disallow: /forum/*view__getprevious$/
Disallow: /forum/*view__getnext$/
Disallow: /forum/*view__getlast$/
Disallow: /forum/*&view=getnewpost$/
Disallow: /forum/*&view=getlastpost$/
Disallow: /forum/*&view=old$/
Disallow: /forum/*&view=new$
Disallow: /forum/*&view=getfirst$
Disallow: /forum/*&view=getprevious$
Disallow: /forum/*&view=getnext$
Disallow: /forum/*&view=getlast$
Disallow: /forum/*?s=
Disallow: /forum/*&s=
Disallow: /forum/index.php?app=core&module=global§ion=login&do=deleteCookies
Disallow: /forum/index.php?app=forums&module=extras§ion=rating
Disallow: /forum/index.php?app=forums&module=forums§ion=markasread
Disallow: /forum/*&do=who
Disallow: /forum/*§ion=dname[/CODE]

I am stumped, I don't want Google period, the f*.*kheads they stole 200 dollars off me this month

Any ideas? Edited by windowsguru
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...