tamanmerah

Htaccess web new

Nov 1st, 2026
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. php_value max_input_vars 3000
  2.  
  3. # === anti-DDoS final ===
  4.  
  5. <IfModule mod_rewrite.c>
  6.  
  7. RewriteEngine On
  8.  
  9. # facebook bing google lolos
  10. RewriteCond %{HTTP_USER_AGENT} (facebookexternalhit|facebot|meta-externalagent|googlebot|bingbot) [NC]
  11. RewriteRule .* - [L]
  12. # block bad bots
  13. RewriteCond %{HTTP_USER_AGENT} ^$ [OR]
  14. RewriteCond %{HTTP_USER_AGENT} (libwww-perl|nikto|sqlmap|nmap|masscan|python-requests|perl|scraper) [NC]
  15. RewriteRule .* - [F,L]
  16. </IfModule>
  17.  
  18. # BEGIN WordPress
  19. <IfModule mod_rewrite.c>
  20. RewriteEngine On
  21. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  22. RewriteBase /
  23. RewriteRule ^index.php$ - [L]
  24. RewriteCond %{REQUEST_FILENAME} !-f
  25. RewriteCond %{REQUEST_FILENAME} !-d
  26. RewriteRule . /index.php [L]
  27. </IfModule>
  28. # END WordPress
  29.  
  30. # php -- BEGIN cPanel-generated handler, do not edit
  31. # This domain inherits the “PHP” package.
  32. # php -- END cPanel-generated handler, do not edit
Advertisement
Add Comment
Please, Sign In to add comment