protection
French 
CrawlTrack, webmaster dashboard.
Web analytic, SEO and protection

CrawlProtect, your website safety.
Reinforced protection

Two php/MySQL scripts, free and easy to install
The tools you need to manage and keep control of your site.





diable

CrawlTrack and CrawlProtect support forum

You are not logged in.


#1 10-06-2012 09:10:06

basza
Membre
Registered: 10-06-2012
Posts: 12

.htaccess problems after install

On a fresh system and no other files or scripts installed, I get the following error when trying to create the .htaccess file.

Not Acceptable

An appropriate representation of the requested resource /protect/cp/index.php could not be found on this server.

If I go to /protect/cp/ the index.php is there.

cp = crawlprotect.

Cheers
Basza

Offline

 

#2 10-06-2012 10:45:03

Jidébé
Administrateur
Registered: 30-10-2005
Posts: 2859

Re: .htaccess problems after install

Hi,

This is due to ModSecurity who is blocking the request.

Did you have access to your httpd.conf file (Apache parameters)?
If it the case, can you send it to me by mail in order to check what parameter is concern for the blockage.

Jean-Denis


CrawlTrack & CrawlProtect developer

Offline

 

#3 10-06-2012 18:04:50

basza
Membre
Registered: 10-06-2012
Posts: 12

Re: .htaccess problems after install

Thank you for your reply.

I do not have access to the httpd.conf file as I am using shared hosting.

Crawltrack seems to be working ok.

Cheers
Basza

Offline

 

#4 10-06-2012 18:19:09

Jidébé
Administrateur
Registered: 30-10-2005
Posts: 2859

Re: .htaccess problems after install

Hi,

At what stage are you blocked?
Did you have access to the htaccess parameter page?

Jean-Denis


CrawlTrack & CrawlProtect developer

Offline

 

#5 10-06-2012 20:02:58

basza
Membre
Registered: 10-06-2012
Posts: 12

Re: .htaccess problems after install

I get to the Crate or Update htaccess page but the error appears when I click on the Creat my .htaccess button. All seems to be working except creating the file.  My current .htaccess file is blank and the only other script within the list is crawltrack. I do not plan on using Joomla, Wordpress or any of the others in the list.

Cheers
Basza

Offline

 

#6 10-06-2012 21:36:50

Jidébé
Administrateur
Registered: 30-10-2005
Posts: 2859

Re: .htaccess problems after install

Hi,

I will send you by mail a new file to be tested.

Jean-Denis


CrawlTrack & CrawlProtect developer

Offline

 

#7 10-06-2012 21:46:06

basza
Membre
Registered: 10-06-2012
Posts: 12

Re: .htaccess problems after install

ok Thank you.
Will test it out when you send or when I wake up later.

Cheers
Basza

Offline

 

#8 10-06-2012 22:23:38

basza
Membre
Registered: 10-06-2012
Posts: 12

Re: .htaccess problems after install

Thank you for sending that file.
It did not change anything and am still getting the error.

Cheers
Basza

Offline

 

#9 10-06-2012 22:42:20

Jidébé
Administrateur
Registered: 30-10-2005
Posts: 2859

Re: .htaccess problems after install

Ok,

I will send you a new file to try.

Jean-Denis


CrawlTrack & CrawlProtect developer

Offline

 

#10 10-06-2012 23:37:24

basza
Membre
Registered: 10-06-2012
Posts: 12

Re: .htaccess problems after install

The new file had no affect.

Seen as Crawltrack is installed, do you think this will be enough to begin with?

Later on I may try another hoster as I have installed Crawlprotect before without any problems.

Cheers
Basza

Offline

 

#11 10-06-2012 23:49:03

basza
Membre
Registered: 10-06-2012
Posts: 12

Re: .htaccess problems after install

latest file sent had no change.

Cheers
Basza

Offline

 

#12 11-06-2012 00:12:11

Jidébé
Administrateur
Registered: 30-10-2005
Posts: 2859

Re: .htaccess problems after install

Ok,

We will try something else,

On the htaccess parameter page, you have the section: Shell command protection

untick all the box in that section

Then try to create your htaccess.

Jean-Denis


CrawlTrack & CrawlProtect developer

Offline

 

#13 11-06-2012 03:51:57

basza
Membre
Registered: 10-06-2012
Posts: 12

Re: .htaccess problems after install

Sorry but un ticking  all of the shell protection also made no change.

Cheers
Basza

Offline

 

#14 11-06-2012 07:24:13

Jidébé
Administrateur
Registered: 30-10-2005
Posts: 2859

Re: .htaccess problems after install

Ok;

So try this:

Create an .htaccess file with the following content (replace xx.xx.xx.xx with your own IP):

Code:

SecFilterEngine Off
order deny,allow
allow from xx.xx.xx.xx
deny from all

Place that htaccess at the root of your site; this will deactivate the ModSecurity just for you.

Jean-Denis


CrawlTrack & CrawlProtect developer

Offline

 

#15 11-06-2012 07:46:44

basza
Membre
Registered: 10-06-2012
Posts: 12

Re: .htaccess problems after install

After entering the above code into a blank .htaccess file I now get the following error:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

The error in the server log is as follows:

[Mon Jun 11 01:38:05 2012] [alert] [client 182.54.162.207] /home/jezainve/public_html/.htaccess: Invalid command 'SecFilterEngine', perhaps misspelled or defined by a module not included in the server configuration, referer: (mysitename)/protect/cp/index.php?navig=0&site=1&nocookie=1

Cheers
Basza

Offline

 

#16 11-06-2012 08:08:52

basza
Membre
Registered: 10-06-2012
Posts: 12

Re: .htaccess problems after install

I just ran a phpinfo to see if the was anything in there. Could not find mod_security in the Environment but did find the following:

Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635

Don't know if it will help or not.

Cheers
Basza

Offline

 

#17 11-06-2012 22:59:04

Jidébé
Administrateur
Registered: 30-10-2005
Posts: 2859

Re: .htaccess problems after install

Hi,

Is it possible to give me an ftp access and access to your CrawlProtect?
I will need to make several test to try to find what is the root cause of the issue.

Jean-Denis


CrawlTrack & CrawlProtect developer

Offline

 

#18 11-06-2012 23:07:11

basza
Membre
Registered: 10-06-2012
Posts: 12

Re: .htaccess problems after install

Sent email to you with login info.

Only got index.htm, CrawlTrack and CrawlProtect on server at the moment. So you can do what's need and I'll carry on with setting up the site later.

Cheers
Basza

Offline

 

#19 11-06-2012 23:59:19

Jidébé
Administrateur
Registered: 30-10-2005
Posts: 2859

Re: .htaccess problems after install

Hi,

Thanks,

I have already made enough test (and so error) to be ban .... :-(

I will continue tomorrow.

Jean-Denis


CrawlTrack & CrawlProtect developer

Offline

 

#20 12-06-2012 22:25:32

Jidébé
Administrateur
Registered: 30-10-2005
Posts: 2859

Re: .htaccess problems after install

Hi,

Good news, it's working !!!!


Your server don't like the word 'htaccess', so I had to modify several variables names and texts to get it run.

I have also change the place of your CrawlProtect folder as it need to be at the root of the site to run.

I will give you more details by mail.

All these changes will be included in the next release; thanks for the access, it's always far easier to debug with direct access.

Jean-Denis


CrawlTrack & CrawlProtect developer

Offline

 

#21 12-06-2012 22:45:03

basza
Membre
Registered: 10-06-2012
Posts: 12

Re: .htaccess problems after install

Thank you for your help.

I was happy that I had not done anything to the site which made it easier to allow you access. Yes it is always easier to work with source of the problem. That is why after always getting my Joomla or wordpress hacked I decided to setup protection first then build my own script around it.
My next big hurdle is to learn php so that I can write own scripts to work with the protection in place.

Cheers
Basza

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB