자바 접속할때마다 새로운 사이트로 리다이렉트 하는 자바스크립트 소스

페이지 정보

작성자 관리자 (183.♡.9.21) 조회 912회 작성일 23-07-27 09:26(글 수정: 2023년 07월 27일)

본문

접속할때마다 새로운 사이트로 리다이렉트 하는 자바스크립트 소스 입니다.


 

[code]

<script>

  // 리다이렉트할 경로들을 배열로 저장합니다.

  var redirectPaths = [

    "https://giftjoa.biz/new/events/events.php?eid=EV0253",

    "https://giftjoa.biz/new/search/name.php?name=%BF%EC%BB%EA",

    "https://giftjoa.biz/new/search/name.php?name=%B9%B0%BA%B4",

    "https://giftjoa.biz/new/events/events.php?eid=EV0527",

    "https://giftjoa.biz/new/events/events.php?eid=EV0313",

    "https://giftjoa.biz/new/events/events.php?eid=EV0514",

    "https://giftjoa.biz/new/events/events.php?eid=EV0639",

    "https://giftjoa.biz/new/events/events.php?eid=EV0635",

    "https://giftjoa.biz/new/search/name.php?name=%BC%B1%C7%B3%B1%E2",

    // 추가적인 경로들을 필요한 만큼 배열에 추가할 수 있습니다.

  ];


  // 랜덤한 인덱스 값을 생성합니다.

  var randomIndex = Math.floor(Math.random() * redirectPaths.length);


  // 랜덤하게 선택된 경로로 리다이렉트합니다.

  window.location.replace(redirectPaths[randomIndex]);

</script>

[/code]




댓글목록

등록된 댓글이 없습니다.

사이트안내 | 서비스 이용약관 | 개인정보 처리방침 |
마이링크 | 후원안내 | FAQ | Admin
TOP