I want to be able to block certain IP addresses from viewing a webpage. The problem is that for this particular webpage (site A), only html is allowed. I don't know of any way to block IPs by using html. I thought maybe I could create a rule in htaccess on another website (site B) that would allow me to block the IPs on site A.
I've already created something in htaccess that allows me to track IPs on site A by putting an image on the webpage. Is there a way to block users from the webpage by inserting an image on the webpage? From what I already tried, only the image is affected, not the webpage. It doesn't seem like it's even possible but I was hoping someone would know for sure.
On site B, the .htaccess code can also just redirect the "good" visitors to the good content on site A and redirect the "bad" ones to something else on site A or B, or anywhere else.
It seems that the script and iframe tags are not allowed on site A. Something else that I was going to try was to create an external stylesheet located on site B and link to it from site A. But site A doesn't allow the link, import, or meta tags.