Mobile app version of vmapp.org
Login or Join
Goswami781

: How do you stop PDF hotlinking and automatically redirect hotlink clickers? I have some PDF documents that I offer users once they have subscribed to my newsletter. Well, Google found them, and

@Goswami781

Posted in: #Redirects

I have some PDF documents that I offer users once they have subscribed to my newsletter. Well, Google found them, and other people are posting them on various sites.

I'd like to take advantage of Google ranking my PDF documents and redirect users that click on those links to an html or php page.

How do you automatically redirect hotlinked PDF clicks (on Google search and other sites) to a relevant page (i.e. domain.com/PDFdoc1.pdf redirects to domain.com/PDFdoc1.html or domain.com/PDFdoc1/)?

I want to keep the PDFs ranked where they are on Google, and keep the PDF documents exactly where they are on my site, but just redirect hotlinked clickers to a page instead of the PDF.How can this be done?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Goswami781

1 Comments

Sorted by latest first Latest Oldest Best

 

@Cody1181609

You should edit your (or create a) .htaccess file to allow for hotlink protection.

I would recommend using this tool: www.htaccesstools.com/hotlink-protection/

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme