Jump to content

Blocking China Bots on Mobile

Recommended Posts

Got a osc 2.3 site that has the mobile site app installed.

We are getting hammered by bots with ip's from china.

I tried adding deny ip's to the .htaccess file but it doesn't work for the mobile site which is a folder in the main site structure.

Any ideas ???

If the only tool you have is a hammer, all your problems look like nails

Share this post

Link to post
Share on other sites

The blocks in the roots .htaccess file should apply to the sub-directories but there are cases where it does not. If you don't have an .htaccess file in the mobile directory, create one. Then copy all f the deny's to that file.

Instead of continually fighting this, you may want to install view counter addon and enable the country blocking option.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now