I'm trying to make it easier for me to keep my url shortener less spammy. When I have to go in through ssh and keep adding another line to my .htaccess it gets really tedious and annoying really fast. So I was wondering if there was a way to add a line of text easily and that could be put in a script
Example:
<Directives here>
Order Deny,Allow
Deny from 255.255.255.255
Deny from 0.0.0.0
Deny from 1.2.3.4
<Other Directives here as well as ending Directive>
Now lets say for giggles I wanted to add 127.0.0.1 and 192.168.0.1 to this, but since I can't directly echo where I want it, how would I go about this. Bash or Python answers accepted