Solved

Throw 410 error code upon request

Posted on 2009-05-11
1
497 Views
Last Modified: 2012-05-06
Last week, one of our websites got spammed. We promptly removed the material. Today, one of our servers experienced a ton of traffic from random hosts looking for those files (probably to download them and serve them up). We would like to present them with a 410 error when they try to access certain directories. How can we go about doing this? We are running apache2 on Ubuntu Linux Server edition. The website is a virtualhost on that server. Thank you.
0
Comment
Question by:khyer123
1 Comment
 
LVL 51

Accepted Solution

by:
ahoffmann earned 250 total points
ID: 24362480
Redirect 410 /your-spam-url http://no.where/
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now