Old 06-29-2004   #1 (permalink)
Recursively call who?
 
GoldNetX's Avatar
 
Join Date: Nov 2003
Location: Pittsburgh, PA
Posts: 294

Send a message via AIM to GoldNetX
PHP Shoutbox

I'm developing a shoutbox for my site and have got the basics for it working. I've pretty much solved most problems with word-wrapping and alignment. I need to know what other safety precautions I should implement to protect from malicious users. Thanks for any input.

URLS:

*site is not near completion*
http://viciousdesign.intoxia.com/phptest/ << main site

http://viciousdesign.intoxia.com/phptest/shoutbox.php << shoutbox (if you wish to test anything you think might mess it up)
GoldNetX is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 06-29-2004   #2 (permalink)
Sheep Worrier
 
Man1c M0g's Avatar
 
Join Date: Sep 2003
Location: Portsmouth, UK.
Posts: 4,105
Blog Entries: 14

Send a message via ICQ to Man1c M0g Send a message via MSN to Man1c M0g Send a message via Skype™ to Man1c M0g
Hmmmm, you should perhaps also strip HTML commands out of user submissions, add a posting limit (i.e. 1 post per 30 secs, so you don't get flooded), and add IP logging for those users intent on abusing the box (so you can lock them out later).
__________________
Man1c M0g is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 06-29-2004   #3 (permalink)
Lazarus' Child
 
malboroman's Avatar
 
Join Date: Nov 2003
Location: The Netherlands
Posts: 603

Send a message via MSN to malboroman Send a message via Skype™ to malboroman
And perhaps a script that gets all 'bad' words out of there like some diseases used for namecalling...

(I had to describe this with some tact... I could do it the 'bad' way)
__________________


"Only the dead have seen the end of war."

- Plato
malboroman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 06-29-2004   #4 (permalink)
Registered User
 
Join Date: Jun 2004
Posts: 2

Yes, convert all usage of the character '<' to &lt; and '>' to &gt;
I tried placing a marquee on your site and it mucked it up. I'm guessing if anyone uses the font tag they can change the font color of the shouts, as you append the text to the start and not the end.... so parse for those characters and replace.
Oh yeah, anyone with a knowledge of CSS could do what I did and place that "Lets see now...Hmm" wherever they wanted on the page using absolute positioning

Good luck!
blu fire is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 06-29-2004   #5 (permalink)
Registered User
 
Join Date: Jun 2004
Posts: 2

Oh yeh, I apologize for the alerts whenever you move your mouse... I'm just checking how much someone could deface it with whatever they wanted
blu fire is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 06-29-2004   #6 (permalink)
Sheep Worrier
 
Man1c M0g's Avatar
 
Join Date: Sep 2003
Location: Portsmouth, UK.
Posts: 4,105
Blog Entries: 14

Send a message via ICQ to Man1c M0g Send a message via MSN to Man1c M0g Send a message via Skype™ to Man1c M0g
LOL! Thats some great defacing work you guys have done there! Pretty inventive too!
__________________
Man1c M0g is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 06-29-2004   #7 (permalink)
Recursively call who?
 
GoldNetX's Avatar
 
Join Date: Nov 2003
Location: Pittsburgh, PA
Posts: 294

Send a message via AIM to GoldNetX
Awesome, thanks for the suggestions. Going to work on implementing them now, hopefully all goes well.

EDIT: I've added a bad word filter, although may add more words to the filter. Have filtered out html and php commands. Posts may only be done in 30 second intervals and IP are logged. Thanks for all of the help. If you guys find anything else please post it.

Last edited by GoldNetX; 07-01-2004 at 01:12 AM..
GoldNetX is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT +1. The time now is 05:47 PM.
Content Relevant URLs by vBSEO 3.2.0

Design & Content © BioRUST 2008 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT