How to cheat the web sever

Giganews Newsgroups
Subject: How to cheat the web sever
Posted by:  geyao (gey…@broadsign.com.cn)
Date: Fri, 26 Sep 2003

Hi,

The web sever have a function to check if the message is posted by program
or Web browser.If it is posted by program then refuse it.  The function is
like that:
//------------------------------------------------------------
Public Function ChkPost()
  Dim server_v1,server_v2
  Chkpost=False
  server_v1=Cstr(Request.ServerVariables("HTTP_REFERER"))
  server_v2=Cstr(Request.ServerVariables("SERVER_NAME"))
  If Mid(server_v1,8,len(server_v2))=server_v2 Then
  Chkpost=True
  End If
End Function
//-------------------------------------------------------------
When I use TIdHTTP to post something, The sever always refuse.(beacause the
function chkpost return false)
How can I do to cheat the web server?

Thanks.

Replies