Brother, I made an IP judge city to jump, put in public files on the presence of non-stop access to jump

Source: Internet
Author: User
I made an IP judge city to jump, put in the public file on the presence of non-stop access to jump
I made an IP judgment city for a two-level domain jump, File for ipaddress.php, put the file in the public file inside the open URL will appear nonstop access to jump, now there is any way to achieve this jump but do not have this endless access to the problem, I have the idea of using cookies, but do not know what to do, which elders help busy.
------to solve the idea----------------------
In fact, you do not need this JS code
Since you are based on the user's IP jump corresponding to the two-level domain name, then you should have a city (region) and a two-level domain name of the table
When the city (region) from the IP name, from this table to jump on the two-level domain name can be (the header function), of course, and $_server[' http_host ') compared, it is no longer jump
------to solve the idea----------------------
After the address is given a flag, for example, Transf=1, the page first accepts request[""]==1, do not perform judgment.
How can you say you're dead?
------to solve the idea----------------------
Very simple, primary domain www.xxx.com
Sub-station domain name, bj.xxx.com, xa.xxx.com, gz.xxx.com ....

From the WWW request, according to the IP jump to the station, the station code does not need to jump, simply judge the domain name and then use the header () to jump on the good.
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.