Question

htaccess blocking a non-existent files/directories?

Posted March 15, 2020 161 views
Apache

Hello, do you have idea how can i block that with .htaccess?

I mean https://site.com/?51515bb or https://site.com/?62626cc

?51515bb
?62626cc

Like this; https://www.digitalocean.com/??62626cc

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hello,

Usually I use the following rule:

RewriteEngine On
RewriteCond %{REQUEST_URI} ^/62626cc
RewriteRule ^(.*)$ - [F,L]

Thus would block the traffic to the /62626cc page.

Submit an Answer