: Random domain pointing to my domain A random person has pointed their domain to my website. I don't have much experience with websites, but I know a bit. What can I put in .htaccess to give
A random person has pointed their domain to my website. I don't have much experience with websites, but I know a bit.
What can I put in .htaccess to give a 403 error if they try to access from a certain domain?
And I would also need to block the other pages in my site showing up on Google,
e.g. mysite.com/help
Sorry if I phrased that strangely, I don't know the correct terminology.
This is my .htaccess so far:
RewriteCond %{HTTP_HOST} !^(www.)?nameofmysite.com$ [NC]
RewriteRule ^ - [F,L]
RewriteCond %{HTTP_HOST} !^www. [NC]
RewriteRule ^ %{HTTP_HOST}%{REQUEST_URI} [L,R=301]
More posts by @Caterina187
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.