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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Preventing Bots from executing my asp page.

Status
Not open for further replies.

basball

Technical User
Dec 18, 2002
192
US
Hi, I have an asp script which pulls data from my another page and sends the data to my mail server. I notice from time to time that I get a blank form, even though I have validation on the page that supplies that data. This is because the asp page is getting executed by itself, I presume their are bots out there, which access the page and I get a blank form submission. How do I prevent this, is there a way to hide the page from the bots using some code or a way of preventing it from being executed as a url - running iis. thanks.
 
Check for the POST collection having a value before processing/


Code:
if Request.form("submit")<>"" then
       'process form data
else
       'do nothing
end if

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top