control-panel-hosting:aapanel:artikel:cara-memblokir-bot-di-aapanel
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| control-panel-hosting:aapanel:artikel:cara-memblokir-bot-di-aapanel [2025/04/12 08:52] – [Apache] kbadmin | control-panel-hosting:aapanel:artikel:cara-memblokir-bot-di-aapanel [2026/05/08 13:45] (current) – kbadmin | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| < | < | ||
| - | RewriteCond %{HTTP_USER_AGENT} ^.*(semrush|MJ12bot|amazonbot|SCspider|Textbot|s2bot|seznambot-crawler|petalbot|AhrefsBot|Bytespider|Barkrowler|ClaudeBot|linkfluence|BacklinksExtendedBot).*$ [NC] | + | RewriteCond %{HTTP_USER_AGENT} ^.*(BLEXBot|semrush|MJ12bot|amazonbot|SCspider|Textbot|s2bot|seznambot-crawler|petalbot|AhrefsBot|Bytespider|Barkrowler|ClaudeBot|linkfluence|BacklinksExtendedBot).*$ [NC] |
| RewriteRule .* - [F,L] | RewriteRule .* - [F,L] | ||
| </ | </ | ||
| Line 26: | Line 26: | ||
| return 403; | return 403; | ||
| } | } | ||
| + | </ | ||
| + | |||
| + | seperti ini di aapanel | ||
| + | < | ||
| + | if ($http_user_agent ~ (semrush|opensiteexplorer|ahrefs|seekport|mj12bot|Claude-SearchBot|opensiteexplorer.org)) { | ||
| + | return 403; | ||
| + | } | ||
| + | |||
| + | |||
| + | location ~ ^/ | ||
| + | allow 1.2.3.4; | ||
| + | allow 114.10.0.0/ | ||
| + | deny all; | ||
| + | } | ||
| + | |||
| + | location / | ||
| + | { | ||
| + | try_files $uri $uri/ / | ||
| + | } | ||
| + | |||
| + | |||
| + | |||
| + | rewrite /wp-admin$ $scheme:// | ||
| + | |||
| </ | </ | ||
Layanan
Harga Domain .COM | Harga Domain .ID | Shared Hosting | Email Hosting | MySQL Hosting |control-panel-hosting/aapanel/artikel/cara-memblokir-bot-di-aapanel.1744422746.txt.gz · Last modified: by kbadmin
