Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Blocking Trouble GET requests

Status
Not open for further replies.

illdill

IS-IT--Management
Jul 13, 2005
31
US
I am experiencing a slew of GET requests from time to time that last a minute or more and make the exact same request about 10 times a second. Is there a way to detect and temporarily block IP addresses that "GET" request a page more than once within so much time?


Thanks

Tim
 
Ok, now it is happening from my own IP address. A file I recently accessed. Could this be an apache/win2003 glich?

*.*.186.76 - - [29/Jun/2006:02:57:05 -0400] "GET /the_Atheist_who_saved_the_usa.html HTTP/1.1" 302 321
*.*.186.76 - - [29/Jun/2006:02:57:05 -0400] "GET /the_Atheist_who_saved_the_usa.html HTTP/1.1" 302 321
*.*.186.76 - - [29/Jun/2006:02:57:05 -0400] "GET /the_Atheist_who_saved_the_usa.html HTTP/1.1" 302 321
*.*.186.76 - - [29/Jun/2006:02:57:05 -0400] "GET /the_Atheist_who_saved_the_usa.html HTTP/1.1" 302 321
*.*.186.76 - - [29/Jun/2006:02:57:05 -0400] "GET /the_Atheist_who_saved_the_usa.html HTTP/1.1" 302 321
*.*.186.76 - - [29/Jun/2006:02:57:05 -0400] "GET /the_Atheist_who_saved_the_usa.html HTTP/1.1" 302 321
*.*.186.76 - - [29/Jun/2006:02:57:05 -0400] "GET /the_Atheist_who_saved_the_usa.html HTTP/1.1" 302 321
*.*.186.76 - - [29/Jun/2006:02:57:05 -0400] "GET /the_Atheist_who_saved_the_usa.html HTTP/1.1" 302 321
*.*.186.76 - - [29/Jun/2006:02:57:05 -0400] "GET /the_Atheist_who_saved_the_usa.html HTTP/1.1" 302 321
*.*.186.76 - - [29/Jun/2006:02:57:05 -0400] "GET /the_Atheist_who_saved_the_usa.html HTTP/1.1" 302 321
*.*.186.76 - - [29/Jun/2006:02:57:05 -0400] "GET /the_Atheist_who_saved_the_usa.html HTTP/1.1" 302 321


And on and on....
 
I am using proxy to redirect to the proper server.

<VirtualHost 192.168.0.12:80>
ServerAdmin webmaster@xxxxx.org
ServerName xxxxx.org
ServerAlias RewriteEngine On
RewriteRule ^/(.*)$ [P]
</VirtualHost>

Occasionaly I get a proxy error, but I just refresh a couple times and it's fine. The problem above (repeating GET requests) is what slows or stalls the server. The page does exist, and I was able to view it.

When I first requested the page however, I only had redirect statement rather than Rewrite, so it was looking for the page without the port number after the domain.


rather than


<VirtualHost 192.168.0.12:80>
ServerAdmin webmaster@xxxx.org
ServerName xxxx.org
ServerAlias Redirect / </VirtualHost>

The reason for using the proxy is to prevent the port number from appearing in the address.

Thanks again
 
Will this happen everytime a request for a Redirected page that cannot be found occurs? If so, how can I prevent it, other than fixing the bad link or replacing the missing page?


Thanks.
 
Let me try to clear this up a little more...

When trying to access the following link:


I need the proxy Rewrite:

<VirtualHost 192.168.0.12:80>
ServerAdmin webmaster@xxxxx.org
ServerName xxxxx.org
ServerAlias RewriteEngine On
RewriteRule ^/(.*)$ [P]
</VirtualHost>

Otherwise, I use the Redirect and the accessible link looks like this:


But, If I am using Redirect and someone requests the following link:


Which needs the port number but does not have it, this is when the GET problem occurs.

Thanks aigan.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top