x
 
Create New Page
 View Previous Changes    ( Last updated by Lisa Wess )

404 Referrers

Question:

I am getting a bunch of referrer spam to the referrer template.  I have already deleted the template but the spam is still coming in, how can I make it send a 404 error?

Answer:

If you don’t want the referrer page to display at all, and you are on a server you can run a .htaccess file, place this on a single line:

Redirect 404 /index.php/site/referrers

Anyone accessing that URL on your site is going to get a 404 error, even if the template still exists at that location within EE.  Its simple and will block anyone from access that referrer page.

Thread

Category:Templates

Categories: