Tôi có một số mã để ghi lại số lần thử mật khẩu đã được thử giống như thế này:
Tôi biết nó đang tính đến năm và sau đó dừng vì tôi đã kiểm tra nó bằng cách lặp lại $ _Session ['lỗi'] trên login.php
PHP không bao giờ chuyển hướng khi nó đạt
header["location:/index.php"];
Nhưng nó luôn luôn tiếp tục và sau đó chuyển hướng đến
header["location:/login.php"];
Làm thế nào tôi có thể nhận PHP chuyển hướng ngay khi nó truy cập vào index.php chuyển hướng?
Tôi có chỉ đặt boolean sau khi chuyển hướng chỉ mục.php và kiểm tra nó trên realirect login.php không?
Chỉnh sửa: Để làm rõ, tôi đã xác định một session_start []; Đừng lo lắng về điều đó. To clarify, I have already defined a session_start[]; don't worry about that.
Khi bạn yêu cầu một URL từ máy chủ, phản hồi sẽ tạo ra một mã trong tiêu đề HTTP.
Tiêu đề HTTP được gửi ra trước ngay cả thẻ HTML đầu tiên trên trang.
Con số đó là 200 nếu trang được tìm thấy và 404 nếu không tìm thấy.
Nếu trang đã di chuyển, nó sẽ là 301 hoặc 302. Có những vấn đề lớn với 302 vì vậy bạn hầu như sẽ luôn muốn sử dụng 301.
Bạn cũng sẽ đi qua 304, 307, 401, 403 và 500 trên các chuyến đi của bạn. Có nhiều chủ đề trước đây với chi tiết.
Phần mở rộng HTTP trực tiếp cho Mozilla Firefox và Mozilla Seamonkey có thể cho bạn thấy chính xác những gì đang diễn ra.
1 năm trước ¶
13 năm trước
I strongly recommend, that you use
header[$_SERVER["SERVER_PROTOCOL"]." 404 Not Found"];
instead of
header["HTTP/1.1 404 Not Found"];
I had big troubles with an Apache/2.0.59 [Unix] answering in HTTP/1.0 while I [accidentially] added a "HTTP/1.1 200 Ok" - Header.
Most of the pages were displayed correct, but on some of them apache added weird content to it:
A 4-digits HexCode on top of the page [before any output of my php script], seems to be some kind of checksum, because it changes from page to page and browser to browser. [same code for same page and browser]
header["location:/index.php"];
0header["location:/index.php"];
1header["location:/index.php"];
2Hamza Dot Eljaouhari Dot Etudes tại Gmail Dot Com ¶ ¶
12 năm trước
header["location:/index.php"];
3header["location:/index.php"];
4header["location:/index.php"];
5header["location:/index.php"];
6header["location:/index.php"];
2
2 ¶header["location:/index.php"];
Người tị nạn ¶
header["location:/index.php"];
8header["location:/index.php"];
9header["location:/index.php"];
2Scott tại LucentMinds Dot Com ¶ ¶
Ẩn danh ¶
header["location:/login.php"];
1header["location:/login.php"];
2header["location:/login.php"];
3header["location:/index.php"];
2Người tị nạn ¶ ¶
13 năm trước
header["location:/login.php"];
5header["location:/login.php"];
6header["location:/login.php"];
7header["location:/login.php"];
8header["location:/login.php"];
9header["location:/index.php"];
2Bmindful tại fleetingiamge dot org ¶ ¶
2 năm trước
I strongly recommend, that you use
1
Cody G. ¶
2header["location:/index.php"];
I strongly recommend, that you use
2
Scott tại LucentMinds Dot Com ¶ ¶
Ẩn danh ¶
I strongly recommend, that you use
3
I strongly recommend, that you use
4
I strongly recommend, that you use
5
I strongly recommend, that you use
6
I strongly recommend, that you use
7
I strongly recommend, that you use
8
header["location:/index.php"];
2Người tị nạn ¶ ¶
Ẩn danh ¶
header[$_SERVER["SERVER_PROTOCOL"]." 404 Not Found"];
0
header[$_SERVER["SERVER_PROTOCOL"]." 404 Not Found"];
1
header[$_SERVER["SERVER_PROTOCOL"]." 404 Not Found"];
2Người tị nạn ¶ ¶
Bmindful tại fleetingiamge dot org ¶
header[$_SERVER["SERVER_PROTOCOL"]." 404 Not Found"];
3
header[$_SERVER["SERVER_PROTOCOL"]." 404 Not Found"];
4
header[$_SERVER["SERVER_PROTOCOL"]." 404 Not Found"];
5
header[$_SERVER["SERVER_PROTOCOL"]." 404 Not Found"];
6
header[$_SERVER["SERVER_PROTOCOL"]." 404 Not Found"];
7
header[$_SERVER["SERVER_PROTOCOL"]." 404 Not Found"];
8
header[$_SERVER["SERVER_PROTOCOL"]." 404 Not Found"];
9
header["location:/index.php"];
219 năm trước ¶
5 năm trước
instead of
1
instead of
2
header["location:/index.php"];
2nobileelpirata tại hotmail dot com ¶ ¶
2header["location:/index.php"];
instead of
4
instead of
5
instead of
6Scott tại LucentMinds Dot Com ¶ ¶
14 năm trước
instead of
7
instead of
8
instead of
9
header["HTTP/1.1 404 Not Found"];
0Vinay Kotekar ¶ ¶
14 năm trước
header["HTTP/1.1 404 Not Found"];
1
header["HTTP/1.1 404 Not Found"];
2
header["HTTP/1.1 404 Not Found"];
3
header["HTTP/1.1 404 Not Found"];
4
header["HTTP/1.1 404 Not Found"];
5
header["location:/index.php"];
2Dev tại Omikrosys dot com ¶ ¶
13 năm trước
header["HTTP/1.1 404 Not Found"];
7
header["HTTP/1.1 404 Not Found"];
8
header["HTTP/1.1 404 Not Found"];
9
header["location:/index.php"];
2JP tại WebGraphe Dot Com ¶ ¶
18 năm trước
I had big troubles with an Apache/2.0.59 [Unix] answering in HTTP/1.0 while I [accidentially] added a "HTTP/1.1 200 Ok" - Header.
1
I had big troubles with an Apache/2.0.59 [Unix] answering in HTTP/1.0 while I [accidentially] added a "HTTP/1.1 200 Ok" - Header.
2
I had big troubles with an Apache/2.0.59 [Unix] answering in HTTP/1.0 while I [accidentially] added a "HTTP/1.1 200 Ok" - Header.
3
I had big troubles with an Apache/2.0.59 [Unix] answering in HTTP/1.0 while I [accidentially] added a "HTTP/1.1 200 Ok" - Header.
4
header["location:/index.php"];
2Chris at Ocproducts Dot Com ¶ ¶
5 năm trước
I had big troubles with an Apache/2.0.59 [Unix] answering in HTTP/1.0 while I [accidentially] added a "HTTP/1.1 200 Ok" - Header.
6
I had big troubles with an Apache/2.0.59 [Unix] answering in HTTP/1.0 while I [accidentially] added a "HTTP/1.1 200 Ok" - Header.
7
I had big troubles with an Apache/2.0.59 [Unix] answering in HTTP/1.0 while I [accidentially] added a "HTTP/1.1 200 Ok" - Header.
8
header["location:/index.php"];
2MZHENG [NO-SPAM-THX] tại Ariba Dot Com ¶ ¶
14 năm trước
Most of the pages were displayed correct, but on some of them apache added weird content to it:
0
Most of the pages were displayed correct, but on some of them apache added weird content to it:
1
header["location:/index.php"];
2Vinay Kotekar ¶ ¶
7 năm trước
Most of the pages were displayed correct, but on some of them apache added weird content to it:
3
Most of the pages were displayed correct, but on some of them apache added weird content to it:
4
header["location:/index.php"];
2Angelica Perduta ¶ ¶
2 năm trước
Most of the pages were displayed correct, but on some of them apache added weird content to it:
6
Most of the pages were displayed correct, but on some of them apache added weird content to it:
7
header["location:/index.php"];
2Cody G. ¶
12 năm trước
Most of the pages were displayed correct, but on some of them apache added weird content to it:
9
A 4-digits HexCode on top of the page [before any output of my php script], seems to be some kind of checksum, because it changes from page to page and browser to browser. [same code for same page and browser]
0
A 4-digits HexCode on top of the page [before any output of my php script], seems to be some kind of checksum, because it changes from page to page and browser to browser. [same code for same page and browser]
1
A 4-digits HexCode on top of the page [before any output of my php script], seems to be some kind of checksum, because it changes from page to page and browser to browser. [same code for same page and browser]
2
A 4-digits HexCode on top of the page [before any output of my php script], seems to be some kind of checksum, because it changes from page to page and browser to browser. [same code for same page and browser]
3
A 4-digits HexCode on top of the page [before any output of my php script], seems to be some kind of checksum, because it changes from page to page and browser to browser. [same code for same page and browser]
4
header["location:/index.php"];
2Scott tại LucentMinds Dot Com ¶ ¶
13 năm trước
A 4-digits HexCode on top of the page [before any output of my php script], seems to be some kind of checksum, because it changes from page to page and browser to browser. [same code for same page and browser]
6
A 4-digits HexCode on top of the page [before any output of my php script], seems to be some kind of checksum, because it changes from page to page and browser to browser. [same code for same page and browser]
7
A 4-digits HexCode on top of the page [before any output of my php script], seems to be some kind of checksum, because it changes from page to page and browser to browser. [same code for same page and browser]
8
A 4-digits HexCode on top of the page [before any output of my php script], seems to be some kind of checksum, because it changes from page to page and browser to browser. [same code for same page and browser]
9
header["location:/index.php"];
00header["location:/index.php"];
01header["location:/index.php"];
02header["location:/index.php"];
03header["location:/index.php"];
04Ẩn danh ¶ ¶
13 năm trước
header["location:/index.php"];
05header["location:/index.php"];
06header["location:/index.php"];
07header["location:/index.php"];
08header["location:/index.php"];
09header["location:/index.php"];
10header["location:/index.php"];
11header["location:/index.php"];
12header["location:/index.php"];
13header["location:/index.php"];
14header["location:/index.php"];
2Người tị nạn ¶ ¶
12 năm trước
header["location:/index.php"];
16header["location:/index.php"];
17header["location:/index.php"];
18header["location:/index.php"];
19header["location:/index.php"];
20header["location:/index.php"];
2Bmindful tại fleetingiamge dot org ¶ ¶
19 năm trước
header["location:/index.php"];
22header["location:/index.php"];
23header["location:/index.php"];
2nobileelpirata tại hotmail dot com ¶ ¶
15 năm trước
header["location:/index.php"];
25header["location:/index.php"];
26header["location:/index.php"];
2er dot ellison dot nyc tại gmail dot com ¶ ¶
7 năm trước
header["location:/index.php"];
28header["location:/index.php"];
29header["location:/index.php"];
2Jamie ¶ ¶
13 năm trước
header["location:/index.php"];
31header["location:/index.php"];
32header["location:/index.php"];
2David Spector ¶ ¶
1 năm trước
header["location:/index.php"];
34header["location:/index.php"];
35header["location:/index.php"];
36header["location:/index.php"];
2Hamza Dot Eljaouhari Dot Etudes tại Gmail Dot Com ¶ ¶
4 năm trước
header["location:/index.php"];
38header["location:/index.php"];
39header["location:/index.php"];
40header["location:/index.php"];
2Aschmidt tại Anamera Dot Net ¶
4 năm trước
header["location:/index.php"];
42header["location:/index.php"];
43header["location:/index.php"];
44header["location:/index.php"];
45header["location:/index.php"];
2Aschmidt tại Anamera Dot Net ¶
Cedric tại gn dot apc dot org ¶
header["location:/index.php"];
47