homepage Welcome to WebmasterWorld Guest from 54.197.215.146
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
RewriteCond question
Giljorak




msg:1507059
 3:00 am on Oct 28, 2003 (gmt 0)

Earlier today I was going through my server logs and found more redirects to my 403.php error document than usual. These are some examples of the IP's I gave 403 errors to:

xx.xx.xx.135
xx.xx.xx.142
xx.xx.xx.137
xxx.xxx.133.139
xxx.xxx.125.xxx
xx.116.xxx.130
131.xxx.xxx.xxx
xxx.139.xxx.xxx
xx.xxx.143.xxx
127.0.0.1

After trial and error I found 2 typos that caused the problem:
RewriteCond %{REMOTE_ADDR} ^63\.240\.227\.11[2-9]12[0-7] [OR]

-should have been:

RewriteCond %{REMOTE_ADDR} ^63\.240\.227\.(11[2-9]12[0-7]) [OR]

--and

RewriteCond %{REMOTE_ADDR} ^63\.240\.248\.12[89]13[0-9]14[0-3] [OR]

-should have been:

RewriteCond %{REMOTE_ADDR} ^63\.240\.248\.(12[89]13[0-9]14[0-3]) [OR]

By not putting parentheses around the final elements of the statements I effectively blocked all users that had a 112 - 143 anywhere in their IP address.

A few of those IP's belonged to google, hopefully they will forgive me and come back.

Yet another reason to watch what you type very carefully.

--EDIT I forgot to ask the question.

Is google going to come back?

 

jdMorgan




msg:1507060
 3:37 am on Oct 28, 2003 (gmt 0)

Giljorak,

Good advice, there... Check your work!

Google will come back as long as you have at least one incoming link to your site. Since they crawl a fairly large portion of the Web, they've seen all the possible problems you could imagine with Web site configurations -- and have developed rather forgiving approaches to error-handling as a result.

You could always "call" Googlebot back by submitting your home page to Google - See their Web site. While it's usually better to just let them find you, I think using their submit page (once) is useful when trying to recover from configuration errors like this.

Jim

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved