Answer the question
In order to leave comments, you need to log in
How can I block the link with the request?
Good afternoon.
Task :
You need to make a redirect when you follow a link or
when you manually type a URL in the browser bar with a request like www.example.com?act=delete
There is such a rule in .htaccess that works
RewriteCond %{QUERY_STRING} act
RewriteRule (.*) http://www.example.com/? [R=302,L]
Answer the question
In order to leave comments, you need to log in
This is VERY bad practice when data changes are made via GET. I can write right here in the comments
<img src="www.example.com/?act=delete&id=1">
<img src="www.example.com/?act=delete&id=2">
<img src="www.example.com/?act=delete&id=3">
<img src="www.example.com/?act=delete&id=4">
<img src="www.example.com/?act=delete&id=5">
<img src="www.example.com/?act=delete&id=6">
<img src="www.example.com/?act=delete&id=7">
<img src="www.example.com/?act=delete&id=8">
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question