How to use RewriteRule in order to block out some directives, in .htaccess
The two directives that I want to block out:
POST /editBlackAndWhiteList
GET /sadad24
How can I make certain, when either of those two are received, WHM will throw a 403 Forbidden, using .htaccess ??
Thanks in advance :)
-
Block post request something liek this rule # send all other post requests to 403 forbidden RewriteRule ^ /editBlackAndWhite [F]0 -
# send all other post requests to 403 forbidden RewriteRule ^/editBlackAndWhite [F] RewriteRule ^/sadad24 [F] 0 -
Thanks @kadrin @guldvog can you let us know if that worked for you? 0 -
:-DYAP!! :-D There are two - alternative - approaches: 1. If you need to do a special redirect: .htaccess # I had to rewrite this section myself, to make certain that only the root part of the said domain would go to https:// ... RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} "/" RewriteRule ^(.*)$ 0
Please sign in to leave a comment.
Comments
4 comments