I have hundreds on entries on my 404 page of people trying to access /admin/ on every url on my site in the shop category, is there a way to either ban or block them. Or use htaccess to redirect them to another place? What is the best option? e.g. /shop/new-post/4/37819/admin/ /shop/new-world-software/7/23234/admin/
It would probably be a good idea to set up a 404-redirect to your homepage, although, that won't stop the problem of people trying to access your admin panel to your site. I'd suggest that if you do have a folder named 'admin' on your site that you block it via your robots.txt file so that there are no traces of it in the search engines; if at all possible, rename it to something hard to guess. As far as the IPs of the people doing this...you might want to block an entire range of IPs (possibly GEO-block) to prevent them from even accessing your site.
Well...You could add a rewrite rule...Thats probably the best way to handle it. RewriteEngine On RewriteRule ^admin$ - [F] Message me if you need help with it.