Report this

What is the reason for this report?

htaccess blocking a non-existent files/directories?

Posted on March 15, 2020

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



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.