.htaccess - Block domain to redirect the particular site -


one of competitor redirect site own site.i need .ht access code block that.so,that no 1 can redirect site.

as per comments think website redirecting cpanel option redirects.

enter image description here

check option. redirecting might due this.

enter image description here

no htaccess work in condition.

update

for htacccess

# block site referrers rewriteengine on  rewritecond %{http_referer} badsite\.com [nc,or]  rewritecond %{http_referer} www\.badsite\.com [nc,or]  rewritecond %{http_referer} http\://badsite\.com [nc,or]  rewritecond %{http_referer} http\://www\.badsite\.com [nc] rewriterule .* - [f] 

i suggest change login details of cpanel asap


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -