This conversation has been locked due to inactivity. Please create a new post.
This conversation has been locked due to inactivity. Please create a new post.
Valid URL
/content/govt/en/us/doctor/doctor-detail.html?doctorId=ss222-001
Invalid URL going to AEM publisher.
/content/govt/en/us/doctor/doctor-detail.html?doctorId=ss222-001/ALFA_DATA/alfacgiapi/perl.alfa
/content/govt/en/us/doctor/doctor-detail.html?doctorId=ss222-001/wp-plain.php
How to block invalid URL with query param contains extension(.alfa OR .php) on dispatcher ? Invalid URL need to redirect to error page.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
You can remove those query param using apache rewrite rule
Example
RewriteEngine On RewriteCond %{QUERY_STRING} ^doctorId=.*(.alfa|.php)$ RewriteCond %{REQUEST_URI} /doctor/doctor-detail\.html$ RewriteRule (.*) $0?
Thanks @arunpatidar for your response. Multiple requests are coming from unknown ip(hacker). So We need to block the request and redirect to error page. Can we achieve it using filter section?
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies