You are not logged in or registered. Please login or register to use the full functionality of this board...

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
.thaccess tempered with
05-23-2011, 04:57 PM
Post: #1
.thaccess tempered with
Last week I received an email from adsense for tos violation. It included the offending url and gave me 72 hours to remove this content from that page or any similar content on my networks.

The problem is that the page in question was not mine. It was a redirect done at .htaccess.

I am in the process of adding the following in all my .htaccess files:
<Files .htaccess>
order allow,deny
deny from all
</Files>

In the hope that it will prevent anyone from accessing that file and modifying with things like:

RewriteEngine on
RewriteRule ^check_work/$ ./geo/hfc.php?checkwork
RewriteRule ^geo-(.*)/$ ./geo/hfc.php?$1

Here is my two questions which hopefully someone has an answer for:

1. Is the <Files .htaccess>
order allow,deny
deny from all
</Files>
Sufficient to prevent some one from modifying my .htaccess file in the future and..

2. The rewriterule that was added doesn't include a proper url. How does it know which url to serve then?

Any help would be greatly appreciated.

Jacques

Ultra Spinnable Articles
---
A better spinner than the best? And free? Try it and you might love it!
Find all posts by this user
Quote this message in a reply
05-23-2011, 05:55 PM
Post: #2
RE: .thaccess tempered with
Why not just change the file permissions settings of .htaccess to only read. Then no one would be able to edit it.

Have you become an employee to your own business by chasing first page google rankings on a daily basis? Start working on your business, NOT in it. Free your time with a completely hands-free SEO solution. Read the incredible member testimonials, and ask any questions you like.
Visit this user's website Find all posts by this user
Quote this message in a reply
05-23-2011, 06:24 PM
Post: #3
RE: .thaccess tempered with
That is what I am doing now. On one server, I had 33 sites which had their .htaccess altered. I am setting them up as 640.

The hosting company is telling me: "you must have an exploitable webscript on the server somewhere. So by sending bad variables to whatever script it is, they were able to modify the writable .htaccess files. I'd recommend you upgrade all scripts you're running ASAP and look for any files that look unfamiliar."

My question is, is there something I should look for in terms of a particular file or an obvious line of code that would be responsible for this behavior?

Ultra Spinnable Articles
---
A better spinner than the best? And free? Try it and you might love it!
Find all posts by this user
Quote this message in a reply
05-23-2011, 07:54 PM
Post: #4
RE: .thaccess tempered with
Hmm, I wish I could help more. I'm not a programmer so I don't have any ideas on the type of code that would be causing this.

Have you become an employee to your own business by chasing first page google rankings on a daily basis? Start working on your business, NOT in it. Free your time with a completely hands-free SEO solution. Read the incredible member testimonials, and ask any questions you like.
Visit this user's website Find all posts by this user
Quote this message in a reply
05-23-2011, 09:02 PM
Post: #5
RE: .thaccess tempered with
Thank you for your help. I appreciate it. I have a question about adsense multiple accounts but I'll post it in the relevant thread.

Ultra Spinnable Articles
---
A better spinner than the best? And free? Try it and you might love it!
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 3 Guest(s)