If you like DNray Forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...

 

Virus on website?

Started by Ravina123, Aug 20, 2022, 12:15 AM

Previous topic - Next topic

Ravina123Topic starter

Despite no apparent reasons, Google listed my website as unsafe and added it to their database. My website appeared to operate normally and my antivirus software did not detect any issues. It wasn't until later that I found out my .htaccess file had been infected.

To prevent this from happening again, I would like to know where I can see a scan of my website for any potential threats. Waiting to be removed from Google's search results is not an option for me.
  •  


admissioninfo123

Spam scripts are frequently added to websites. If you have ssh access, you can log in as root and search for them using these commands:
grep -rl 'v3c6e0b8a' ./*
grep -rl 'FilesMan' ./*
grep -rl 'eval(base64_decode' ./*

These commands can help detect spam scripts. Additionally, attackers may add pages with a ".html" extension that link to inappropriate content. These pages can be difficult to find, but it's important to remove them. Sadly, many website owners don't bother and allow the spam to proliferate, often at the root level.

In general, it's recommended to keep your CMS up to date in order to minimize the risk of hacks.
  •  

RZA2008

To minimize the risk of hacking, it is recommended to follow these preventive measures:
1. Update server software and CMS on a timely basis.
2. Create backup copies regularly.
3. Use strong passwords that contain at least 8 characters with numbers and special characters ($%#/*).
4. Avoid storing passwords in clear text.
5. Limit access rights to folders and files as much as possible.

If you suspect that your website has been infected with a virus, you should verify this by examining the website's activity using tools like Firebug. Online services such as antivirus-alarm or vms.drweb.com/online can also help identify malicious code on your site. Once the services have run their checks, examine the files they flagged. Malicious code is often found at the beginning or end of a file.

For a surface inspection, use the command "find /home/user/data/www/site.com/ -type f -mtime -20" to find website files that have been modified less than 20 days ago. An FTP log file (/var/log/xferlog) may also be useful in identifying viruses uploaded via FTP.

To conduct a detailed inspection, check the htaccess file for redirects. It's possible that malicious code has been hidden there.
  •  

ManiQuadraIncorp

To prevent websites and computers from being hacked, follow these guidelines:
1. Don't save passwords in your FTP client, as viruses can steal them this way.
2. Use secure FTPS or SFTP to prevent third parties from accessing your data.
3. Only allow FTP access from known IP addresses.
4. Use licensed CMS and plugins downloaded only from official websites or popular directory web sites.
5. Keep your CMS and plugins up-to-date with the latest security patches.
6. Use an updated browser, antivirus, and firewall.
7. Avoid using simple passwords and refrain from using the password saving feature in browsers.

Despite taking preventive measures, website hacking is not always preventable, but continuous monitoring can help detect and block malicious code.

If your website is infected, close FTP access to your account, update antivirus databases, remove the infected code or restore files from a backup, and update your CMS and plugins. Repeat these steps for each computer that has FTP access to your account.

Remember, the main reasons for website infections are stolen FTP passwords and vulnerabilities in CMS and plugins. Use Google Search Console to quickly identify infections, and avoid saving passwords in FTP clients. Keep your CMS and plugins up-to-date and check your website periodically with an antivirus to keep it secure.
  •  

pletcherva

To scan your website for potential threats, you can start by using reputable online security scanners such as Sucuri SiteCheck, VirusTotal, or Google's Safe Browsing Site Status. These tools can comprehensively analyze your website for malware, suspicious scripts, and other security vulnerabilities. They provide invaluable insights into any potential threats that may have been overlooked.

In addition to using online scanners, it's essential to conduct a thorough review of your website's access logs, server logs, and file integrity monitoring. Monitoring for any unauthorized changes in your .htaccess file, as well as other critical files, can help detect and mitigate security breaches in a timely manner.

Regularly updating all software, including your Content Management System (CMS), plugins, and themes, is crucial to patch any known vulnerabilities. Implementing a robust Web Application Firewall (WAF) can also provide an added layer of protection against common web-based attacks, such as SQL injection and cross-site scripting (XSS).

Moreover, consider implementing secure coding practices, such as input validation and output encoding, to mitigate the risk of code injection attacks. Enforcing strong user authentication and access control measures can also contribute to enhancing overall website security.

If you're unable to manage the security aspects yourself, seeking the assistance of a professional web security expert or a reputable web security service provider is highly recommended. They can conduct a comprehensive security audit, identify potential vulnerabilities, and implement necessary measures to fortify your website's defenses against future intrusions.
  •  


If you like DNray forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...