Forums
This topic is locked
Vandalism! how to protect from them
Posted 23 Jun 2002 18:35:08
1
has voted
23 Jun 2002 18:35:08 Eddie Adamsociety posted:
I have problem about peple try to mess up my page when then input in the multi line text field by they holding the key (any letter) continue...Even I set fixed table to pixel but the table still expand out make the page out of shape
What should I do?
Sean
Replies
Replied 24 Jun 2002 01:10:09
24 Jun 2002 01:10:09 Andrew Watson replied:
Ive seen this question raised before and have not really looked into it so there may be a simple fix but if there isn't then, depending on how many words you expected to get in any post,
you couldsplit the teaxt into an array of words, check ther length and emit any words longer than the maximum desried, then rebuild the paragraph.
only a thought...
Cheers, Leed
:: Son, im Thirty.... ::
you couldsplit the teaxt into an array of words, check ther length and emit any words longer than the maximum desried, then rebuild the paragraph.
only a thought...
Cheers, Leed
:: Son, im Thirty.... ::
Replied 24 Jun 2002 04:15:35
24 Jun 2002 04:15:35 aegis kleais replied:
You know, if there's a specific group of people who are abusing your website, just implement a list of BANNED ip addresses.
There's a saying "Crap in, Crap out"
If they try to break your system, they can expect something bad in return.
None the less, the ASP code:
Request.ServerVariables("REMOTE_ADDR" will return the user's IP address.
Just add code at the top of the page that access a database and checks the list of banned IP addresses. If the current IP is found in the list, redirect them to "banned.asp"
You know, something like:
userIP = Request.ServerVariables("REMOTE_ADDR"
bannedIP = rcdUsers.Fields.Item("bannedIP".Value
if InStr(1,userIP,bannedIP,0) > 0 then Response.Redirect("banned.asp"
Of course, if the user has a dynamic IP address, this makes it even screwier. You know, that's why you should be able to see someone's MAC address!
There's a saying "Crap in, Crap out"
If they try to break your system, they can expect something bad in return.
None the less, the ASP code:
Request.ServerVariables("REMOTE_ADDR" will return the user's IP address.
Just add code at the top of the page that access a database and checks the list of banned IP addresses. If the current IP is found in the list, redirect them to "banned.asp"
You know, something like:
userIP = Request.ServerVariables("REMOTE_ADDR"
bannedIP = rcdUsers.Fields.Item("bannedIP".Value
if InStr(1,userIP,bannedIP,0) > 0 then Response.Redirect("banned.asp"
Of course, if the user has a dynamic IP address, this makes it even screwier. You know, that's why you should be able to see someone's MAC address!
Replied 24 Jun 2002 07:38:07
24 Jun 2002 07:38:07 Eddie Adamsociety replied:
Thank you
Banned Idea is good. But need more detail how to do that
Thank you
Banned Idea is good. But need more detail how to do that
Thank you
Replied 24 Jun 2002 09:45:02
24 Jun 2002 09:45:02 Andrew Watson replied:
Banning IPs will only work if the user has a STATIC IP, most are still on dialups and thier IP will change wilth every connection.
:: Son, im Thirty.... ::
:: Son, im Thirty.... ::