Forum Moderators: DixonJones
i cannot seem to find where its coming from?
Edit: shocking grammar
[edited by: Receptional_Andy at 10:04 pm (utc) on June 8, 2008]
At the very top of the page
<%
who = request.ServerVariables("http_user_agent")
if who="Mozilla/3.0 (compatible; Indy Library)" then
response.redirect ("banned.asp")
else
%>
-------- then -------
the
whole
of
your
current
page
-------- here -------
<% end if %>
I removed the + signs from the UA because they are added by the Win log files.
The page it is redirected to can be named anything but should NOT exist, then the bot gets a 404 and goes away. If it exists the bot will run in circles between index and banned.
[edited by: Staffa at 10:08 pm (utc) on June 8, 2008]