I want to know if is possible make a secured site with some code in the htaccess or some scripts.Someone is trying to put a virus in my site,when I scaning my site with the server antivirus I detect a exploit.
Is it a Linux OR a Windows server? BTW, can you paste the scanning report here so people here can identify what exactly it is?
a site should never be secured in .htaccess but security problems should be FIXED in the software that has known security issues in addition security problems arise from incompetent server / web site configurations, wrong permissions etc again secure your entire server/web space ! then when all scripts and SW is properly secured and fixed deny access to any admin area or config scripts - either in your default server config or by htaccess and after all above install mod_security and snort to secure a properly configured and secured system never bypass the work of cleaning up security holes by htaccess. that would be comparable to the current oilspill situation in the gulf patching mistakes is no solution permanently solving mistakes at the original source is the solution Google for each installed SW package or script you have running on your server security vulnerabilities nameofyourSWhere that may give you a list of patches if you have SW with security issues then fix all then secure as a.m.
It is not possible to secure the server with a htaccess file. You can use bash script to harden your server.
I highly recommend downloading ZBblock a PHP based site security program, i've used it for a while now and really like it.