Lavalair Sql Injection Blocker

Started on the old forum in March 2009 · view the original in the archive · old links redirect here

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.

31 participants
manavworld Developer · 118 posts #41

Now easly protect ur site, just block mysql injection,cookie stealing block, and sesion id block, for more information just use search button and get more information

blockerhead Junior · 36 posts #42

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

I put this .htacces in folder gallery and got error message from server than i change script like this <Files 403.shtml> order allow,deny allow from all </Files>

deny from *.php deny from *.php. deny from *.php.php. Its working..! I try to upload 99cy.php. and can't open that file.

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close