check words on incoming requests to routes on the server before rendering the page

0

I want to check an incoming connection, for example if you want to connect to my apache2 server from IP 12.1.3.3, and within the server you want to access the path / hello. Before rendering the page I want to check if there are certain words on the route. How could I do it ?, I was trying it with iptables but I can not find the way.

    
asked by elvaqueroloconivel1 29.06.2017 в 21:00
source

1 answer

0

If you want to deny urls that have characters < , > , you can do it in Apache2 with modrewrite For example:

RewriteRule [<>] - [F]

will return error 403 (Forbidden).

    
answered by 29.06.2017 в 21:56