Solved

annoying referer

Posted on 2008-10-02
1
200 Views
Last Modified: 2012-05-05
hello there,
I have seen in my awstats logs that about 120 sites from the same owner is sending traffic to my site and its not content related..
I would like to send back all his traffic.. so I can write down all his domains and have a php script that if it came from there then send it back
how can I do this?
0
Comment
Question by:XK8ER
1 Comment
 
LVL 22

Accepted Solution

by:
Ivo Stoykov earned 500 total points
ID: 22631461
Hello XK8ER

Here is a simple script that might give you an idea

HTH
I

if(ip2long($_SERVER['REMOTE_ADDR']) >= ip2long('XXX.XXX.XXX.XXX') && ip2long($_SERVER['REMOTE_ADDR']) <= ip2long('XXX.XXX.XXX.XXX'))
{
// it comes from forbidden range and must be cut off
  exit();
}

Open in new window

0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

791 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