Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

linux modsecurity allow googlebot

#add the following lines to the file /etc/apache2/conf.d/modsec/modsec2.user.conf
HostnameLookups On
SecRule REMOTE_HOST "@endsWith .googlebot.com" "allow,log,id:5000001,msg:'googlebot'"
SecRule REMOTE_HOST "@endsWith .google.com" "allow,log,id:5000002,msg:'googlebot'"
SecRule REMOTE_HOST "@endsWith .search.msn.com" "allow,log,id:5000003,msg:'msn bot'"
SecRule REMOTE_HOST "@endsWith .crawl.yahoo.net" "allow,log,id:5000004,msg:'yahoo bot'"
SecRule REMOTE_HOST "@endsWith .yandex.ru" "allow,log,id:5000005,msg:'yandex bot'"
SecRule REMOTE_HOST "@endsWith .yandex.net" "allow,log,id:5000006,msg:'yandex bot'"
SecRule REMOTE_HOST "@endsWith .yandex.com" "allow,log,id:5000007,msg:'yandex bot'"
SecRule REMOTE_HOST "@endsWith .crawl.baidu.com" "allow,log,id:5000008,msg:'baidu bot'"
SecRule REMOTE_HOST "@endsWith .crawl.baidu.jp" "allow,log,id:5000009,msg:'baidu bot'"
Comment

PREVIOUS NEXT
Code Example
Shell :: actualizar linux apt 
Shell :: hardhat required npm packages install 
Shell :: view rpm info 
Shell :: install ws-redis 
Shell :: windows 10 smb1 not working 
Shell :: windows build support installation failed unity linux 
Shell :: use localhost for self signed cert 
Shell :: how to generate a .gitignore 
Shell :: stop openhab2 service 
Shell :: remove and exclude folder in git for upcomming commits 
Shell :: redis sentinel get master ip 
Shell :: add suid bit 
Shell :: pip install flask dockerfile 
Shell :: p4merge git config 
Shell :: how to install brew on jelastic 
Shell :: kill traffic to port linux 
Shell :: How to "git status" 
Shell :: git colorize log 
Shell :: mac terminal command suggestion history 
Shell :: programming tools fedora 
Shell :: install opencl headers ubuntu 
Shell :: get count lines in file using cat 
Shell :: where do you install composer 
Shell :: ubuntu focus follows mouse 
Shell :: bash open file in text editor 
Shell :: ubuntu add user to dailout 
Shell :: How to use Git for Unity3D source control? 
Shell :: capacitor-google-auth 
Shell :: cat stands for in linux 
Shell :: duf command ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =