Allow certain IP ranges and googlebot if url contains specific word(s), deny the rest

Job ID: 35662615

Budget: €30 – €250 EUR

Due to legal trademark issues, I need to add some .htaccess rules, in order to meet 3 separate conditions:

- Allow access from certain countries IP ranges, deny the rest
- Allow googlebot, no matter what IP
- All the above rules apply only to any URL containing 'theword'

It is for Prestashop, the htaccess rules must not contradict the standard Prestashop htaccess rules
Related categories: Apache Prestashop