<%
Dim yourDomain, theReferer
yourDomain = "http://www.yourdomain.com/"
theReferer = Request.ServerVariables("HTTP_REFERER")
theReferer = left(theReferer, len(yourDomain))
If Not yourDomain = theReferer Then
Response.Redirect("/niceTryBuddy.asp")
%>
the reason for left in the referer instead of using somthing like
instr() is an instr statement could still be beat with an entry in the
querystring to satisfy it.
Brynn
www.coolpier.com
On Tue, 13 Jan 2004 16:02:22 -0500, "Bill" <>
wrote:
>"Don Grover" <> wrote in message
>news:...
>> How can I stop some one from trying to post my form from a remote site.
>> I am getting some one cycling through usernames trying fpr passwords on a
>> web site.
>> Don
>>
>>
>
>do an HTTP Referrer check from your login, to make sure the source of the
>login attempt is from your website. If the source is not from your website,
>it IS an intrusion, do not allow the login and ban their IP address for one
>day.
>
>
>
>
I participate in the group to help give examples of code. I do not guarantee the effects of any code posted. Test all code before use!
Brynn
www.coolpier.com