Answer the question
In order to leave comments, you need to log in
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
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.
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
in the wp-login.php file, after <?php
, you can insert the following code
if($_SERVER['REMOTE_ADDR']) =='127.0.0.1') { // ip для примера
die('доступ закрыт');
}
Create .htaccess file in wp-admin folder with following content
order deny,allow
allow from 117.168.1.10 # <-- тут свой ip вставьте
deny from all
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question