41 replies · 7,140 views · started 17 years ago · 1 min read
TL;DR · summary of 41 replies
-subzero suggested using magic_quotes_gpc = On in php.ini to prevent a lot of problems related to SQL injection.
-Anderson recommended validating all input fields and using mysql_real_escape_string for preventing SQL injections, as it is specifically made for that purpose by the PHP team.
-The thread did not conclude with a specific fix or code approach for blocking SQL Injection completely.
Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.
Mysterio3 wrote:
try to make something like go.php, so when someone adds a link, it will loose everything in there, then redirect to the desired url.
you said make like this go.php when hacker cames with external link via fourm,picture,avtar links, but my question is that go.php for wot? U mean we have need to rename gallery.php or core.php or wot. Can u explain about it, than newbie user can undrstand easly about all function
manavworld wrote:
you said make like this go.php when hacker cames with external link via fourm,picture,avtar links, but my question is that go.php for wot? U mean we have need to rename gallery.php or core.php or wot. Can u explain about it, than newbie user can undrstand easly about all function
its for the links,posted by users.like http://site.com should be go.php?site=http://site.com
in go.php make header location the site value.
for images dnt allow direct images..pass images through php file
ranzit2 wrote:
its for the links,posted by users.like http://site.com should be go.php?site=http://site.com
in go.php make header location the site value.
for images dnt allow direct images..pass images through php file
ahh ok sir, i will remove link of avtar, iam undrstand w0t u said, thank budy, realy thankful to u
ozziemale31 wrote:
to protect your file share folders from php pages being uploaded make a htaccess page and put in it the following
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
<Files images>
deny from all
</Files>
<Files *.php>
deny from all
</Files>
<Files *.php.*>
deny from all
</Files>
<Files *.php.php.*>
deny from all
</Files>
when a php page is uploaded in that directory and the hacker goes to open it they end up with a nice 403 error page not found even though their script to hack may be there lol thanks to gum for that lil trick
brother i hv already updated (magic_quotes in my core.php coding, now i can update this code in my .htaccess file?..ok...and one more question....<Files *.php>
deny from all
</Files>
<Files .php.>
deny from all
</Files>
..its ur code, hv we need to replace anythng? Plz ur litle teach make me secure, plz help me brother...i wil thankful to u.