Skip to content

Instantly share code, notes, and snippets.

@kevinquillen
Created February 20, 2024 20:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinquillen/d32dd7bb5ce1f288452241b9205312aa to your computer and use it in GitHub Desktop.
Save kevinquillen/d32dd7bb5ce1f288452241b9205312aa to your computer and use it in GitHub Desktop.
Forbid all Wordpress traffic on Drupal sites with htaccess, any URI beginning with "wp-".
# Block common Wordpress paths.
RewriteCond %{REQUEST_URI} ^/wp-(.*)? [NC]
RewriteRule ^ - [F]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment