I have a link adder on my site and people keep scripting it (puting html codes in to make alert boxes)
Is there any way i can stop them puting html into my textboxes?
Very simple. If the > symbol is entered, let it be transformed to > and if the < is entered, let it be transformed to <
The nice thing about htmlspecialchars is you can log the IP when they enter, then use a simple search to see if it contains any of those tags, and then IP ban.
There's no point in that.
Best thing is to use htmlspecialchars, so if someone wants to write "<I> <am> <cool>", it doesn't get deleted like in strip_tags, and you don't get ip banned, but it just shows up as typed.
Yeah, but if people constantly do it it is nice to have their IP logged. I've had it happen before where people completely ruined my site. I figured out I should do that later, and then that made my life so much easier. And a few people got banned.
Not really, if you did it in html.
People can still use their own html pages to post to yours.
What language is it written in?
Last edited by Stubru Freak on Tue Apr 04, 2006 10:16 pm; edited 1 time in total
i put an ip recorder that records the ip and the name of there link so if they script they will be banned!