K
K
Kodir2022-02-18 08:41:25
CMS
Kodir, 2022-02-18 08:41:25

Ya nemogu blokirovat wp-admin panel po IP address on WordPress?


RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /testweb/wp-admin
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} ! -d
RewriteRule ./testweb/index.php [L]

Answer the question

In order to leave comments, you need to log in

5 answer(s)
D
Dark Hole, 2016-03-09
@abyrkov

So, I'm sorry.
First, if you do not know how it all works, it is better not to write.
Secondly, why do you need social. network? You just can't stand the competition.
Thirdly, you still do not pull.
Fourthly, there are no such moves as such.

K
Konstantin Khairov, 2016-03-10
@Kaylos

Personally my opinion.
There are engines and heaps of them can be downloaded and installed. But they may have vulnerabilities.
Write your own version, but for SOCIAL NETWORKS you need experience in developing projects, and very large ones. NOT just a few page site.
The previous speaker correctly noted. You can't stand the competition. Users need something to attract. That is, there should be a feature in your social network
. And I’ll repeat it again. It’s useless to write a social network without experience with PL. Even if something comes out, it will be demolished for you. Since I understand that you have no experience in security, no experience in writing dynamic sites in any PL.
In general, if you just want to have fun, then break through the social network script in google. There are a lot of them and even similar to VK and OK, somewhere I even saw something similar to Facebook

V
Vitaly Slyusar, 2016-03-10
@slusarvitaliy

instant cms

R
Rst0, 2022-02-18
@Rst0

in the wp-login.php file, after <?php
, you can insert the following code

if($_SERVER['REMOTE_ADDR']) =='127.0.0.1') { // ip для примера
die('доступ закрыт');
}

I
Immortal_pony, 2022-02-18
@Immortal_pony

Create .htaccess file in wp-admin folder with following content

order deny,allow
allow from 117.168.1.10 # <-- тут свой ip вставьте
deny from all

... thus access will be only from one ip, and from all the rest it will be blocked

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question