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
Lavalair Sql Injection Blocker
Started on the old forum in March 2009 · view the original in the archive · old links redirect here
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.
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.