/    Sign up×
Community /Pin to ProfileBookmark

stop malicious scripts

on my website i am starting to allow users to upload tutorials and articles.

the problem i am going to encounter is malicious code. i currently log all ip addresses on login and on registration but i just wanted to know if anyone has a link/any tips on stopping people from entering malicious code into the database via the text boxes

iv done a bit of testing and already notice how you can do alot without much work atall as the site does all the work for the person entering the malicious code.

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@NogDogApr 28.2006 — If you're using a MySQL database, I'd suggest looking Example 3 on the [url=http://us3.php.net/manual/en/function.mysql-real-escape-string.php]mysql_real_escape_string()[/url] page.
×

Success!

Help @knowj spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...